syntax to reference $_POST within function

From: Date: Fri, 20 Dec 2002 04:28:09 +0000
Subject: syntax to reference $_POST within function
Groups: php.general 
Request: Send a blank email to php-general+get-128942@lists.php.net to get a copy of this message
I am attempting to modify an old script to support the superglobal $_POST with register_globals=Off. These register globals are definately challenging when you are new to php and every example shown anywhere uses the old method but I guess what doesn't kill you only makes you stronger. I am trying to convert this line, $email is coming from an html form so I would typically call it with $_POST['email'] but this doesn't work in this case and I thus far haven't been able to find anything that explains what I should be doing. function check_banlist($banlist, $email) { Any assistance is appreciated! Thanks, Jamie

« previous php.general (#128942) next »