Discussion: Open New URL window
Afficher un message
Vieux 20/09/2007, 08h46   #8
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Open New URL window FINAL ANSWER

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/
  Réponse avec citation
 
Page generated in 0,05332 seconds with 9 queries