Reputation: 5
i want to pass a querystring as a value of another querystring in php.]
mycode:
$url3="http://hscore3.php?try=1&name=xyz";
$string3="http://ww.php?url=".$url3;
header("location:$string3");
In ww.php:
echo $_REQUEST['url'];
On doing this i am getting output as:
"http://hscore3.php?try=1"
but i want:
"http://hscore3.php?try=1&name=xyz"
How to get this? Any suggestions?
Upvotes: 0
Views: 72
Reputation: 4145
$url3="http://hscore3.php?try=1&name=xyz";
$string3="http://ww.php?url=".rawurlencode($url3);
header("location:$string3");
Upvotes: 1