Page 1 of 1

POST Error

Posted: Tue Apr 06, 2004 6:38 am
by itisl
HI,

I've created a simple login form using HTML and using the POST method for the form. But the values are not getting posted to the next page.

When I try to use get, the url is shown blank(no value is passed ahead).

Can any one give me the solution for this?

Is this the problem of HTML or of PHP?

Please reply back asap.
Thanks.

Posted: Tue Apr 06, 2004 6:46 am
by JayBird
Show your code

Mark

Posted: Tue Apr 06, 2004 6:56 am
by itisl
Form1.html:

<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<form action="hello.php" method="POSt">
Your first name <input type="text" name="name">
Your favorite color <input type="text" name="color">
<input type="submit" value="Send Info">
</form>
</BODY>
</HTML>

hello.php

Hello
<?php echo $_POST["name"]; ?>,
Your favorite color is <?php echo $_POST["color"]; ?>.

Posted: Tue Apr 06, 2004 8:13 am
by tim
viewtopic.php?t=511

are your register_globals on?

Posted: Tue Apr 06, 2004 8:44 am
by liljester
register globals dont have to be on to use $_POST