--- Frank Tudor <[EMAIL PROTECTED]> wrote:
> I am getting a elseif parse error.
Let me clean up your code a bit, and hopefully the error will stand out.
function payment()
{
global $payment;
if ($payment == '0');
header ('Location: http://example.org/test_page.html');
}
global $payment;
elseif ($payment == '1')
{
header ('Location: http://example.org/test_page2.html');
}
Can you see the problem(s) now? Never underestimate the benefits of writing
clean code. :-)
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php