Why are you passing the POST array? As it's superglobal why not just work
directly on it within the function?
Dan
-
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-Original Message-
From: Jason Gerfen
Dan Parry wrote:
Why are you passing the POST array? As it's superglobal why not just work
directly on it within the function?
Dan
-
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-Original Message-
Why are you passing the POST array? As it's superglobal why
not just work directly on it within the function?
Passing it has distinct advantages, like being able to test the function.
Jared
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Is the function actually returning anything? Aren't you just echoing the
content of the $_POST?
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
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
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:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General
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:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I
Peter Lauri wrote:
http://th.php.net/manual/en/function.return.php
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
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
7 matches
Mail list logo