I want to know about $_REQUEST with the request from any form on the web because some document show about this function can use like normal declaration variable. Suppose I have 1 form name is register.php inside the form I have 1 input text name's "username" with a submit button the action file of my form is xxx.asp Which one is correction of format from my form.
ex:method is POST
1) $_REQUEST['username'];
2) $HTTP_POST_VARS['username'];
3) $username;
I saw some document use like number 3) Can I use like number 1) for on any PHP server?
<BODY>
<!-- If input text box name's "user" -->
<?php echo $SERVER["HTTP_USER_AGENT"];
print $POST["user"];
print $_REQUEST["user"]; #work fine
print $user; # not work
print "\n"
?>
</BODY>
Best Regards
Thank you very much.
Neung🙁