Redirecting using a form
Posted: Fri Aug 10, 2007 9:59 am
I have a simple form with a drop down menu to choose a page to go to.
the form then uses this
But nothing seems to be happening. Any suggestions please.
the form then uses this
Code: Select all
<?php
if (isset($_POST['submitted'])) {
if ($_POST['gallery'] == 'fashion')
{
header ('Location:http://localhost/model/fashion.php');
}
elseif ($_POST['gallery'] == 'glamour')
{
header ('Location:http://localhost/model/glamour.php');
}
elseif ($_POST['gallery'] == 'shows')
{
header ('Location:http://localhost/model/shows.php');
}
elseif ($_POST['gallery'] == 'tearsheets');
{
header ('Location:http://localhost/model/tearsheets.php');
}
}
?>