Hi, I'm running PHP 4.2.3 on Apache 2.0.43. All this runs on my Linux system. Everything goes well in the first try to ensure that all works ... phpinfo() displays the relevant webpage ... but the problem is when i try to submit a form to a php page, the php code cannot access the form controls. For example this is my code:
<input type = "text" name = "username" />
and when i submit the page back to itself (ie form.php)
print ("Hi");
print ("$username");
doesnt work ... only prints hi ... why ???? pls help thank you
php form handling problems
Moderator: General Moderators
This may seem trivial, but you are getting $username from the $_GET array aren't you?
Code: Select all
<?php
$username = $_GETї"username"];
?>- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
have a good read of this: viewtopic.php?t=511