Re: $_POST to function? [SOLVED]

From: Date: Fri, 24 Feb 2006 17:53:59 +0000
Subject: Re: $_POST to function? [SOLVED]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231040@lists.php.net to get a copy of this message
Peter Lauri wrote:
http://th.php.net/manual/en/function.return.php -----Original Message----- From: Jason Gerfen [mailto:jason.gerfen@scl.utah.edu] Sent: Saturday, February 25, 2006 12:29 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] $_POST to function? Peter Lauri wrote:
Is the function actually returning anything? Aren't you just "echoing" the content of the $_POST? -----Original Message----- From: Jason Gerfen [mailto:jason.gerfen@scl.utah.edu] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? 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>"; }
Well as I pass $_POST to the global_template function I am not seeing anything in the $args array in the global_template function. And to this point I still have not figured out why. Figured it out, typo. I must have fat fingers today. Thanks everyone.
-- Jason Gerfen "When asked what love is: Love is the Jager talking." ~Craig Baldo

« previous php.general (#231040) next »