Forms and radio button selection
Posted: Tue Nov 11, 2003 8:11 am
Hi
I've got the following piece of code that works on two radio buttons:
Basically, I want the data in the form to be sent to an email address every time it's submitted, but based on the radio button selection, the page must be redirected to a particular URL.
I've tried various ways of getting the code above to work to no avail.
If anyone has any ideas of how to get this sorted, I would really appreciate it.
Thank in advance
I've got the following piece of code that works on two radio buttons:
Code: Select all
<?
if (isset($_POST["submit"])) {
if ($issues = '4issues') {
header("Location: http://url1goeshere");
} else if ($issue = '8issues') {
header("Location: http://url2goeshere");
} else {
echo("Do nothing");
}
}
?>I've tried various ways of getting the code above to work to no avail.
If anyone has any ideas of how to get this sorted, I would really appreciate it.
Thank in advance