I have the following code to validate if a text field is filled in:
if (strlen($values['text']) == 0)
$errors['text'] = 'sometext';
…but what I’d like to know is what code do I use to have radio buttons validated.
I have 3 buttons and a user MUST check one.
Does someone have the code for this?
Thanks in advance,
Bruce