0

the bottom line of what I want to do is-

I have a file with a form (form.php) that has 2 drop lists, on sumbit I want to be redirected to another page (1.php) if dropbox 1 was set, to page 2.php if droplist 2 was set and to page 3.php if both droplists were set.
is it possible?? I don't get the header() thing..but I don't think that's what I'm looking for..
a think there sould be another file in the middle that has a switch or something and redirects to the different pages after the submit


form.php->redirect.php->1.php
__________________->2.php
__________________->3.php

so is there a function for that?

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by 54uydf
1

the bottom line of what I want to do is-

I have a file with a form (form.php) that has 2 drop lists, on sumbit I want to be redirected to another page (1.php) if dropbox 1 was set, to page 2.php if droplist 2 was set and to page 3.php if both droplists were set.
is it possible?? I don't get the header() thing..but I don't think that's what I'm looking for..
a think there sould be another file in the middle that has a switch or something and redirects to the different pages after the submit


form.php->redirect.php->1.php
__________________->2.php
__________________->3.php

so is there a function for that?

if option 1
{
$url=www.one.com;
echo "<meta http-equiv=\"refresh\" content=\"1;URL=$url\" />";
}
else if option 2
{
$url=www.two.com
echo "<meta http-equiv=\"refresh\" content=\"1;URL=$url\" />
}

.. and so on

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.