I made the changes but I am getting: Parse error: parse error, unexpected T_ELSEIF
I did take the second global statement out after I cut and pasted your code and modified the urls so now here is what it looks like (the whole thing). 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