Re: Special Action Form
by Kevin Waterson <kevin(at)oceania.net>
|
Date: |
Sun, 1 Dec 2002 11:57:58 +1100 |
To: |
"Teajai Kimsey" <tkimsey(at)budgetwebsitedesign.com> |
Cc: |
hwg-techniques(at)hwg.org |
References: |
whc pieceoshit cox |
|
todo: View
Thread,
Original
|
|
This one time, at band camp,
"Teajai Kimsey" <tkimsey(at)budgetwebsitedesign.com> wrote:
> I need the script that makes a form take the person to a certain destination
> based on the answer to a question. Example: yes -- visitor goes to page a,
> no -- visitor goes to page b.
in php you would have two buttons, 'yes' and 'no' in your form.
Then a php script that might look something like this...
<?php
if(isset($_POST['name']) && $POST['name'] == 'yes')
{
header("Location: http://url.com/pageA.ext");
}
else
{
header("Location: http://url.com/pageB.ext");
}
?>
Kind regards
Kevin
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Kevin Waterson
Byron Bay, Australia
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA