fr0stx
03-16-2004, 09:31 AM
How can i check if the user selected a real value, and not leave the radio buttons?
<input type="radio" value="1" checked name="payment">
// AND
<input type="radio" value="2" checked name="payment">
The radio button is my first time to use it. I never try it with validation.
How do you take off 'no black spot on it'!?!
The user must select! If he/she leave it on then it'll be required validation!
Here:
if ($_POST['whatever'] == '1,2'){
echo 'you need to select a whatever !.';
That don't work :(
I know how to code php required field validation in only one time but not two radio buttons.
Thanks
<input type="radio" value="1" checked name="payment">
// AND
<input type="radio" value="2" checked name="payment">
The radio button is my first time to use it. I never try it with validation.
How do you take off 'no black spot on it'!?!
The user must select! If he/she leave it on then it'll be required validation!
Here:
if ($_POST['whatever'] == '1,2'){
echo 'you need to select a whatever !.';
That don't work :(
I know how to code php required field validation in only one time but not two radio buttons.
Thanks