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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php