I'm pretty new to PHP and web design in general. I've been working through the "Beginning PHP4" book.
I'm trying to make a form for my company website to conduct a survey. I'm attempting to validate the form, but my if statements in my php page don't seem to be picking up the variables from my form on my html page!
I used a <form method=get action="http://www.mypage.com/myfile.php4"> tag in my html page. The pages seem to be "linking up" server side. No matter what I do, though, I can't evaluate the string values in my radio button variables.
Here are some examples from my code:
<input name="FB" type="radio" value="Yes">
<input name="FB" type="radio" value="No">
if($FB!="Yes" AND $FB!="No")
echo "You have not answered Question 1. Please click the back button in your browser to try again.";
Can anyone tell me why this isn't working?