Re: Declaring variables from the url

From: Date: Mon, 07 Aug 2006 13:22:24 +0000
Subject: Re: Declaring variables from the url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240244@lists.php.net to get a copy of this message
Also check in php.ini register_globals to be On if you want to have vars directly available in the script... Andy Jay Blanchard wrote: > [snip] > http://www.domain.com/index.php?var=1 > > And then, to use the variable, all I have to do is use it in the script, > > like so: > > echo "This is the value of the variable: " . $var; > [/snip] > > echo $_GET['var']; >

« previous php.general (#240244) next »