The result now is no error, but displayed nothing after I inputted something in the name field and submitted.
//sample_register.htm
<html>
<form method="POST" action="sample_register.php" name="rname">
<p>Name:<input type="text" name="usrname" size="50" tabindex="1"></p>
<p> </p>
<p><input name=B1 type=submit value="Submit"></p>
</form>
<p> </p>
</html>
//sample_register.php
<?php
echo $_POST[usrname]
?>
PHP Version => 5.0.2
WinXP
Apache 2.0.48 (win32)
register_globals = On (although it was recommended to be off because this often leads to security bugs.)
Doesn't work either if using $usrname.
//sample_register.htm
<html>
<form method="POST" action="sample_register.php" name="rname">
<p>Name:<input type="text" name="usrname" size="50" tabindex="1"></p>
<p> </p>
<p><input name=B1 type=submit value="Submit"></p>
</form>
<p> </p>
</html>
//sample_register.php
<?php
echo $_POST[usrname]
?>
PHP Version => 5.0.2
WinXP
Apache 2.0.48 (win32)
register_globals = On (although it was recommended to be off because this often leads to security bugs.)
Doesn't work either if using $usrname.