A
Anonymous
Guest
Guys,
I have a form and a few radio buttons, the value of this radio buttons is 1 and three 0s.
The Value of the buttons are like this, when clicked.
Button 1 =0
Button 2 =1
Button 3 =0
Button 4 =0
I equate my varibales like this to get the value from the radio buttons
$question1 = $_POST['question1'];
The program is ok if i choose radio button 2 because the value is 1 but if i choose the other radio buttons like 1,3 & 4. there will be an error like
Notice: Undefined index: question1 in c:\inetpub\wwwroot\eval\MSWpre1.php on line 28
Please help, thanks.
I have a form and a few radio buttons, the value of this radio buttons is 1 and three 0s.
The Value of the buttons are like this, when clicked.
Button 1 =0
Button 2 =1
Button 3 =0
Button 4 =0
I equate my varibales like this to get the value from the radio buttons
$question1 = $_POST['question1'];
The program is ok if i choose radio button 2 because the value is 1 but if i choose the other radio buttons like 1,3 & 4. there will be an error like
Notice: Undefined index: question1 in c:\inetpub\wwwroot\eval\MSWpre1.php on line 28
Please help, thanks.