On Mon, August 7, 2006 8:13 am, Dave M G wrote:
> I have many times set the value of a variable by declaring it in the
> URL, like so:
>
> 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 t
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 "Th
> PHP list,
>
> I have many times set the value of a variable by declaring it in the
> URL, like so:
>
> 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]
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'];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
PHP list,
I have many times set the value of a variable by declaring it in the
URL, like so:
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;
But, for some reason, in
5 matches
Mail list logo