PHP Code Help Needed...?

Ranger Giya

New member
So its my first time writing in PHP and I need some help...

I have a HTML document with like 4 questions, which can be answered using radio buttons or drop down menus. My question is, how do I write PHP code to say that if radio button 3 is selected and if drop down option 4 is selected, then print out this on the next page?...

Please help...thanks...
 
Something like this

<?php
if($_POST[radioelem]==="num3" && $_POST[optionelem]==="num4")
{
echo "You selected 3 and 4";
}
?>

where radioelem and optionelem are the names of your form elements and num3 and num4 are the values assigned to the options.
 
Back
Top