HTTP Post Problems

HTTP Post Problems

Post by kalata » Sun, 08 Aug 2004 14:08:17


Hi,

I am trying to post to a simple PHP script from the following HTML code:

<FORM METHOD="POST" ACTION="verify.php">
Username: <INPUT TYPE="textbox" NAME="user" SIZE=15 MAXLENGTH=15>
<BR>Password: <INPUT TYPE="password" NAME="pass" SIZE=15 MAXLENGTH=15>
<BR><CENTER><INPUT TYPE="submit" VALUE="submit"></CENTER>
</FORM>

... to the following PHP script...

<FILE = verify.php>
-------------------
<?php

echo "<TITLE>Logging in...</TITLE>\n";
echo "<FONT FACE=ARIAL SIZE=4>\n";

echo "Username = ".$user . " <BR>\n";
echo "Password = ".$pass . " <BR>\n";

?>

IT DOES NOT WORK!!! Please help.

Thanks,
Wes K :)
 
 
 

HTTP Post Problems

Post by Kees Nuy » Sun, 08 Aug 2004 16:38:23

On 6 Aug 2004 22:08:17 -0700, XXXX@XXXXX.COM (Wesley



The PHP setting register_globals is off and you should keep it
that way. Use $_POST['user'] and $_POST['pass'] instead of $user
and $pass.

This may be more on topic in comp.lang.php, though.

Regards,

--
) Kees Nuyt
(
c[_]