php redirect and querystring

Posted by kusanagi on Stack Overflow See other posts from Stack Overflow or by kusanagi
Published on 2010-05-29T14:15:29Z Indexed on 2010/05/29 14:22 UTC
Read the original article Hit count: 171

Filed under:
|
|
|

i have script

    <?php
$to = $_GET["to"];

header("Location: $to");
?> 

if i call script such

out.php?to=http://site.ru/page.php?param1=1&param2=2

in param $to be only http://site.ru/page.php?param1=1&

how to fix? i want that $to = http://site.ru/page.php?param1=1&param2=2

© Stack Overflow or respective owner

Related posts about php

Related posts about redirect