Re: [PHP-WIN] IIS \ Apache and header(location: errors

2002-10-19 Thread Cam Dunstan
fo=I need a password"); } There are undoubtedly several good reasons why a purist wouldn`t do it that way but hey - it works. Cheers CD - Original Message - From: "BOb Pardoe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 19, 2002 2:11

[PHP-WIN] IIS \ Apache and header(location: errors

2002-10-18 Thread BOb Pardoe
I am trying to execute the following redirection on a web page if the error condition is true if ($_POST["txtPassword"] == "" ) { header ("Location : http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/"."errors.php ?Err=".URLEncode("LogOn -002")."&SrcLocn=".URLEncode("LogOn.php")."&In