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?

Recommended Answers

All 2 Replies

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

thank you so much!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.