POST Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
itisl
Forum Newbie
Posts: 2
Joined: Tue Apr 06, 2004 6:38 am

POST Error

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Show your code

Mark
itisl
Forum Newbie
Posts: 2
Joined: Tue Apr 06, 2004 6:38 am

Post 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"]; ?>.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

viewtopic.php?t=511

are your register_globals on?
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

register globals dont have to be on to use $_POST
Post Reply