Creating form with PHP
I'm trying to create a simple form with PHP, however, there's this one problem: it seems that I couldn't obtain the user-input value.
For example I have this piece of code within my form.php:
<form action="<?=$PHP_SELF?>" method="POST">
<p align="center">Please login</p>
<table align="center" border="0">
<th><input type="text" name="username"> </th>
<th><input type="password" name="password"> </th>
<th colspan="2" align="right">
<input type="submit" value="Login">
The next time I reference to $username, it is NOTHING! So it never takes the user-input value from the textbox "Username".
Any idea where I might be wrong in here?