Hi

AH> Whats the advantage (or shall i say disadvantage )of passing form variables to a 
function 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to