Re: $HTTP_POST_VARS
| From: | Àíòîí | Date: | Mon, 09 Jun 2003 11:17:01 +0000 |
| Subject: | Re: $HTTP_POST_VARS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150741@lists.php.net to get a copy of this message | ||
Hi
AH> Whats the advantage (or shall i say disadvantage )of passing form variables to a function
AH> like shown below:
AH> function function_name($var,$var1,$var2)
AH> {
AH> }
AH> rather than passing the $HTTP_POST_VARS array to the fuction like:
AH> function function_name($HTTP_POST_VARS)
AH> {
AH> }
AH> Is any better than other? or both the same?
AH> awlad
Use $_POST and pass nothing to the function. It is superglobal array.
--
Regards
Anton