Re: Open New URL window
| From: | Don Read | Date: | Thu, 20 Sep 2007 07:18:37 +0000 |
| Subject: | Re: Open New URL window | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262268@lists.php.net to get a copy of this message | ||
On Thu, 20 Sep 2007 02:52:19 -0400 Andrew Prostko said:
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
{
header("Location: password.php");
}
else
{
header("Location: sept-coupon07.html");
}
?>
-----------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Close your parenthesis, daggummit!
if ($_POST['pw'] != burgers )
^^^
--
Don Read dread@aceweb.com
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.