|
Posted by deja on 10/12/07 04:46
> If your URL is really something like:
>
> http://www.example.com?var1=blah&var2=blah
>
> Then $_GET['var1'] will contain the first value, and $_GET['var2'] will
> contain the second value. If it doesn't work, either your url is wrong
> or you're not accessing the data correctly.
>
> P.S. Please don't top post. And when using examples, use example.com as
> the domain - that's what it's reserved for.
>
Jerry,
I simplified my webpage to
<?php
echo $_GET['var1'];
echo $_GET['var2'];
echo $_GET['var3'];
?>
And the url I use now to test is (besides the example part)
www.example.com/php/blah.php?var1=test&var2=blahblah&var3=candy
When I do this it only returns one variable.
There must be something simple I am missing here..
Navigation:
[Reply to this message]
|