HTTP Post Problems

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="...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-07-2004
Wesley Kalata
 
Posts: n/a
Default HTTP Post Problems

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 :)
  #2 (permalink)  
Old 08-07-2004
Kees Nuyt
 
Posts: n/a
Default Re: HTTP Post Problems

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[_]
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0