Click to See Complete Forum and Search --> : All values in $_GET are ""


MonsieurRenard
06-22-2006, 06:17 PM
This is really weird, I call the page like this:

page.php?&var1=1&var2=2&var3=3

Now $var1, $var2 and $var3 all have the correct values, but $_GET[0] or $_GET[2] etc... are all equal to nothing. I tested this

What am I doing wrong?

Little Goat
06-22-2006, 06:25 PM
it would be $_GET['var1'], $_GET['var2'] etc.

MonsieurRenard
06-22-2006, 06:28 PM
Oooh...
Are those strings? I assume so because of the '.

tabzter
06-22-2006, 07:43 PM
if the url is: "page.php?&var1=1&var2=2&var3=3"

then


$_GET['var1'] = 1
$_GET['var2'] = 2
$_GET['var1'] = 3


as an example:

if ($_GET['var1']==1) echo "PHP";