Re: Re: function help simple redirect
| From: | Frank Tudor | Date: | Mon, 27 Oct 2003 19:25:57 +0000 |
| Subject: | Re: Re: function help simple redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167779@lists.php.net to get a copy of this message | ||
This one worked (kinda)!!!!
I have no more errors but it doesn't do the redirect (hmmm)??
So now here is what it looks like:
I am putting in the $payment="1"; so it will automatically go to
test_page2.html but it just sits there.
Is there a headers thing already going on blocking this?
I know don't need the quotes around the "1" because it's a
number vaule and not a string.
Can anyone think of any other reason why it might not work?
Frank
<?PHP
$payment = "1";
function payment(){
global $payment;
if ($payment == "0"){
header ('Location: http://ftudor/test/test_page.html');
}
elseif ($payment == "1") {
header ('Location: http://ftudor/test/test_page2.html');
}
}
?>
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com