This is a discussion on HTTP Post Problems within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, I am trying to post to a simple PHP script from the following HTML code: <FORM METHOD="...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 :) |
|
|||
|
On 6 Aug 2004 22:08:17 -0700, kalataw@rose-hulman.edu (Wesley
Kalata) wrote: >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 :) 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[_] |