Re: querystring and PHP 4

From: Date: Thu, 05 Dec 2002 00:19:11 +0000
Subject: Re: querystring and PHP 4
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127063@lists.php.net to get a copy of this message
1. use $_GET['id'] rather than $id OR 2. turn off register globals in php.ini, or at a per-directory level with a .htaccess file 3. you should have searched the archives first 4. this question gets asked almost daily Justin on 05/12/02 11:01 AM, Dan Wade (dan@hamparts.com) wrote: > Hello, > > i'm grabbing querystring data like: > www.myserver.com/foo.php?id=bar > > <? > echo $id; > ?> > > It works like a champ on dev server using php 3 but the sys admin > use PHP 4 on the production box and the querystring is no longer being > passed. > I can't imagine this changed from version to version. > > Is he missing something in his install? > > thanks, > > -Dan > Justin French -------------------- http://Indent.com.au Web Development & Graphic Design --------------------

« previous php.general (#127063) next »