RE: $_POST to function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do:

function global_template( $cmd, $args, $num, $message ) {
  ob_start();
  echo "<pre>"; print_r( $args ); echo "</pre>";
  ob_end_flush();
  return ob_get_contents();
}


-----Original Message-----
From: Jason Gerfen [mailto:jason.gerfen@xxxxxxxxxxxx] 
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject:  $_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>";
 }

-- 
Jason Gerfen

"When asked what love is:
 Love is the Jager talking."
~Craig Baldo

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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux