0

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?

asked Oct 24, 2013 at 5:49

1 Answer 1

1
$url3="http://hscore3.php?try=1&name=xyz";
$string3="http://ww.php?url=".rawurlencode($url3);
header("location:$string3");
answered Oct 24, 2013 at 5:52
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.