Forums
This topic is locked
Form submit re-direct
07 Dec 2006 18:12:44 smack mr posted:
Looking for some help on this form I am building.invites.fasken.com/skiday_07/rsvp.html
This is what I have now:
$URL = "invites.fasken.com/skiday_07/thanks.html";
header ("Location: $URL"
The very last question for ski rentals has 2 radio buttons. YES and NO.
What I need it to do is when some one Submits the form with NO selected for rentals they are sent to a thanks.html page. But is they select YES I want them directed to rentals.html page.
Please help
Thanks!<font color=red></font id=red>
Replies
Replied 12 Dec 2006 13:53:00
12 Dec 2006 13:53:00 Roddy Dairion replied:
<pre id=code><font face=courier size=2 id=code>
if ($_POST['radiobuttonname'] == 'YES')
{
$URL = "invites.fasken.com/skiday_07/rentals.html";
}
else if ($_POST['radiobuttonname'] == 'NO')
{
$URL = "invites.fasken.com/skiday_07/thanks.html";
}
header ("Location: $URL"
</font id=code></pre id=code>
if ($_POST['radiobuttonname'] == 'YES')
{
$URL = "invites.fasken.com/skiday_07/rentals.html";
}
else if ($_POST['radiobuttonname'] == 'NO')
{
$URL = "invites.fasken.com/skiday_07/thanks.html";
}
header ("Location: $URL"
</font id=code></pre id=code>