Re: Open New URL window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Prostko wrote:
Ok, so I started using the header code that was suggested:

And I get this error:
Parse error: parse error, unexpected '{' in
/home/char-lee/public_html/beta/1.php on line 3

This is the code:
-----------
<?php
	if ($_POST['pw'] != burgers

You'll be wanting to put burgers in quotes and close the bracket on the line above.

    if ($_POST['pw'] != 'burgers')

	{
	header("Location: password.php");
	}
	else
	{
	header("Location: sept-coupon07.html");
	}
?>
-----------

I suggest you find a beginners book or Google for a beginners tutorial on PHP because it would appear you need to learn some fundamentals of the language before continuing.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux