Forum Moderators: coopster
I have a form with 2 radio buttons on it and based on the value of the button selected, I would like my form to go to different pages. for example if I clicked on the first option, the submit would go to
page_1.php, if I clicked on the second button, the submit would go to page_2.php .
Here is my code :
<?php
print ("<form method=post>
<input type=radio name=gender value=m/>male<br>
<input type=radio name=gender value=f />female<br>
<hr>
<input type=submit >
</form>");?>
Thanks
// do not pass http_vars to include without testing
include($_GET['page'].".php");