Re: RE: function help redirect help

From: Date: Mon, 27 Oct 2003 19:17:46 +0000
Subject: Re: RE: function help redirect help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167776@lists.php.net to get a copy of this message
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

« previous php.general (#167776) next »