Re: Open New URL window FINAL ANSWER

From: Date: Thu, 20 Sep 2007 07:46:55 +0000
Subject: Re: Open New URL window FINAL ANSWER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262271@lists.php.net to get a copy of this message
Andrew Prostko wrote:
Wow, it really must be late, Thank you for pointing out that missing parenthesis ... 330am and now I can go to bed happy... TY VM Ending Code for anyone listening: Get PW from another .php page using: <form action="passwordcheck.php" method="post"> <br /> What is the Password?: <input type="text" name="pw" /> <input type="submit" value="Submit!"/> </form> This is the passwordcheck.php code: <?php if ($_POST['pw'] != burgers)
You might want to quote that as well: 'burgers' otherwise php will look for a defined value called 'burgers', ie: php will look for this: define('burgers', 'xyz'); and try to compare against that (in this case the real password is 'xyz'). If you turn up error reporting: error_reporting(E_ALL); and display errors: ini_set('display_errors', true); you would see a message about this. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#262271) next »