Hi there, How do I get the variable from a url like this: www.domain.com/?variable ?
Thanks!
/Daniel
my.domain.com?my_var_1=a&my_var_2=b
then use
$var_1 = $GET['my_var_1']; $var_2 = $GET['my_var_2'];
echo $var_1 will give you a
echo $var_2 will give you b
HTH
rinjani
So there's no way you can get the "a" from www.domain.com/?a
?
$_SERVER['QUERY_STRING']