can't access a GET variable on function?

From: Date: Tue, 16 Dec 2003 04:31:53 +0000
Subject: can't access a GET variable on function?
Groups: php.general 
Request: Send a blank email to php-general+get-172774@lists.php.net to get a copy of this message
$emailto = $_GET['EmailTO']; function wtemp_mainbody() { print "Contact ("; echo "$emailto"; print ") Info"; } Why can't i display a GET variable from a function? Or should i registered it on global session? -- - Louie Miranda http://www.axishift.com

« previous php.general (#172774) next »