Hi Joseph,
This function can be broken down into two seperate parts:
- The page with the form
- The page with the form interpreter
You need to create your form like so:
<form action="interpreter.php" method="post">
<radio name="page" value="X"> Blah
<radio name="page" value="Y"> Blah
<input type="submit">
</form>
In the interpreter, you must write the following:
if (isset($page)) {
if ($page == "X") {
Header("Location: http://blah.com/x.html");
} else {
Header("Location: http://blah.com/y.html
}
}
You could set the page up so that if there is no $page variable that it prints the form, and set the form action to itself if you want to save space.
Kind Regards,
David Grant