hi, i move some values over url. my syntax is correct. (xxx.com/show.php?var=value)
but i can't get the value in the opening page.
what is wrong. how i can get these values.??
$string = $_REQUEST['var']; echo $string; // result is 'value'
You say your syntax is correct, but do not show us any code. If the syntax were correct, then it would work. More than likely, you are using $var and do not have register_globals on. Try using $_GET["var"], instead.
ok, but the problem is i can take these vars from address bar on my computer that i use at job.
i use the same code on my computer that i use at home. then i did't work.
thanks for your help.
Likely the computer you use at work has register_globals set to On in php.ini
In any case, using the superglobal array is better.