AARRRGGGGG why isnt this working???
if ($authorize == "yes") {
echo "You selected the Yes button.";
}
if ($authorize == "no") {
echo "You selected the No button.";
} else {
die ("Please select either yes or no.");
}
When I select the Yes button, it says "You selected the Yes button.Please select either yes or no."
The No button works though. When I select the No button, it says "You Selected the No button."
Why is the else statement kicking in when I select the Yes button? The two buttons in the form are named 'authorize' and one has a value of 'yes' and the other has a value of 'no'.
What am I doing wrong? Thanks for any help.