If no radio btn is selected, get Undefined Index error
Posted: Wed Mar 24, 2004 9:24 am
The form contains a typical radio button group with none checked. The values in the form are passed to a PHP handler page.
Problem: if none of the radio buttons are selected, the following error is displayed:
Notice: Undefined index: ServDogType in C:\web\Keystone\www2\ssd\prelimappHandler.php on line 68
This is the code from line 68:
$ServDogType = trim($_POST["ServDogType"]);
All of the other form values are accepted. As well, if a radio button IS checked, no error is displayed.
Any ideas, good people?
Thanks very much for your help!
Pat
Problem: if none of the radio buttons are selected, the following error is displayed:
Notice: Undefined index: ServDogType in C:\web\Keystone\www2\ssd\prelimappHandler.php on line 68
This is the code from line 68:
$ServDogType = trim($_POST["ServDogType"]);
All of the other form values are accepted. As well, if a radio button IS checked, no error is displayed.
Any ideas, good people?
Thanks very much for your help!
Pat