[Wylug-help] LAMP: form vars not passed to php script
Jason Lander
jason at env.leeds.ac.uk
Wed, 8 Jan 2003 13:23:48 +0000 (GMT)
> I gathered that, instead of $foo, I now have to use $_POST('foo'] or
> $_REQUEST['foo'], so I rewrote:
>
> $query = "SELECT userId, userName, userPass from users WHERE userName =
> $_REQUEST['frmuser'] AND userPass = MD5($_REQUEST['frmpass'])";
>
> But still no values come thru, or with $_POST ...
As a quick test, could you print out the contents of the $_POST and
$_REQUEST hash using something like
<pre>
<?php print_r($_REQUEST); ?>
</pre>
- Jason