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!
I m working RedHat Linux 9.0 using PHP-4.3-6 and Apache 2-0-47-10 and I getting problem that the form variable can't process php tag the out put fallowing programme is
that is contant of $username variable is empty even though if i enter something in text box
Please Help me
<HTML>
<FORM>
Please type your name here:<br>
<INPUT TYPE=TEXT NAME=username><BR><BR>
<INPUT TYPE=SUBMIT VALUE='Enter'>
</FORM>
<BR><BR>
The reason yours doesn't work is you have register_globals Off (and rightly so). So that means if you have a form element named 'username' then once you submit the form you won't get $username, you have to use $_POST['username'] (if the form method is post).