hi,
I have two radio buttons on a registration page. These are
<input type="radio" name="frmSex" value="M">Male
<input type="radio" name="frmSex" value="F">Female
What im having a problem is that im checking that all fields of a form have been checked before a query happens. This is as
follows:
if( isset($frmFirstName) && isset($frmLastName) && isset($frmHouseNumber) && isset($frmStreet)
&& isset($frmTown) && isset($frmPostCode) && isset($frmSex) && isset($frmEmail) && isset($frmUsername) && isset($frmPassword) && isset($frmCheckPassword)){
//all fields have been set, so do database query
}
For some reason, when the IF statement checks the frmSex radio buttons, it misses them out. Basically meaning that the field has not been set, but the
script continues to do the query missus the value from the frmSex field.
Can anyone help?
Thanks in advance