Re: Product details not being displayed, based on passed id

From: Date: Thu, 28 Apr 2005 13:28:13 +0000
Subject: Re: Product details not being displayed, based on passed id
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-214088@lists.php.net to get a copy of this message
Mark Sargent wrote: <big snip>
Hi All, ok, so let me understand this. To be able to use GET/POST and some others, I need this turned on, yes..? Do you all have it set to on..? If no, how do you get around this..? Cheers.
No. With globals off, php just doesn't _magically_ transform mydomain.com/script.php?foo=bar into a variable named $foo with a value of bar. The data is still there. For something passed in the query (URL) string, use the $_GET array... $_GET['foo'] For something passed by a form with the post method, use the $_POST array... $_POST['foo'] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#214088) next »