note 6980 deleted from Predefined variables by ronabop

From: Date: Fri, 11 Aug 2000 15:54:45 +0000
Subject: note 6980 deleted from Predefined variables by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1220@lists.php.net to get a copy of this message
Dear all, <br> When i tried to use $HTTP_GET_VARS/$HTTP_POST_VARS to get all form informations, it is ok when the call in main function, like <br> /* main function */<br> ......<br> if ($REQUEST_METHOD=="POST"){<br> echo "POST";<br> /* do sth related $HTTP_POST_VARS*/<br> }<br> elseif ($REQUEST_METHOD=="GET"){<br> echo "Get";<br> /* do sth related $HTTP_GET_VARS*/<br> }<br> .......<br> But when i tried to copy the same code into a function and then call it, all vars. become empty. What wrong? I found from this site that those vars are global and should be used in function?<br> (P.S. Config: Apache/1.3.12, Php/3.0.15, and tried use php_track_vars)<br> Thx a lot.

« previous php.notes (#1220) next »