I have 2 radio buttons defined with the same name. Let's call the name: customer. I don't want a default because of user errors occurring so I need to make sure the user does set one of these buttons. I tried the 'isset' and received a parsing error. I also tried the 'defined' but it returned true even when it wasn't set. How can I check to see if they set it because I do receive an error while processing the remainder of the script. If I tried checking for one or the other values being equal to in the 'customer', I get an error.
Here is the HTML code:
<input type="radio" name="customer" value="20204"> Subway (20204)    
<input type="radio" name="customer" value="21002"> Duke (21002) </strong><br><br>
I attempted to check for these buttons when the form has been submitted in a separate php file.
My isset try looked like this:
if ( ! isset("customer")) {
echo "Must select a customer";
exit;
}
My defined code looked like this:
if ( ! defined('customer') {
echo "Must select a customer";
exit;
}
Thanks...Charlie