Re: arg parsing
| From: | Jason Young | Date: | Fri, 08 Nov 2002 18:48:17 +0000 |
| Subject: | Re: arg parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123457@lists.php.net to get a copy of this message | ||
This is a common upgrader's 'register_globals' confusion problem ;-)
Basically what it means is that arbitrary values are not parsed in a GET-type request, like your action=new.
You must explicitly ask for them..
*I* personally use this (I'm sure others will follow up with their code) at the top of my files:
if ($_GET['action']) // $_GET[] is the superglobal for GET requests
$action = $_GET['action'];
Hope this clears it up!
-Jason
Phil wrote:
Apologies for revisting any old ground but I am not able to resolve this. I have been running a php script that uses an argument http://..............././process.php?action=new It used to work on linux 7.3 php4 apache 1.3.2 I have just upgraded my test environment to linux 8.0 php4.3.2 apache 2.040 now it doesn't work becuase the arg does not get parsed. I am sure that this is a config issue but I do not know it - any assistance much appreciated. regards Phil