Good Day
I might have accidentally posted this twice, sorry about that.
Here is my query, I am teaching myself PHP going through the chapters in your book, all has gone well until the section on validating forms, in particular the validating of radio buttons. # script 2.3 handle_form.php
Everything works as it should except when neither of the two radio buttons are selected, this code
if (isset($_REQUEST['gender'])) {
$gender = $_REQUEST['gender'];
} else {
$gender = NULL;
}
Does not seem to see "gender" as a result the "You forgot to enter your gender" message does not appear. I did thoroughly check my code, asked several PHP programmers I know and they all tell me it should work.
So have I done something wrong, is there a bug in my version of PHP (5.5.12), if it helps I am using Wamp Server on my PC with Windows 10.
Ian