$_POST to function?
| From: | Jason Gerfen | Date: | Fri, 24 Feb 2006 15:26:47 +0000 |
| Subject: | $_POST to function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-231023@lists.php.net to get a copy of this message | ||
I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass the $_POST array as an argument to a function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo