I have this code on my redirect page
<?php
foreach($_POST as $key => $value) {
$$key = $value;
}
foreach($_GET as $key => $value) {
$$key = $value;
}
$w = $_GET['w'];
?>
<?php
header('location:<? echo $w; ?>');
?>
The w is a url parameter. What is wrong. The url's are dynamically generated that's why it has to be passed as a parameter and echo'd. What is wrong. This doesn't work to redirect.
<?php
foreach($_POST as $key => $value) {
$$key = $value;
}
foreach($_GET as $key => $value) {
$$key = $value;
}
$w = $_GET['w'];
?>
<?php
header('location:<? echo $w; ?>');
?>
The w is a url parameter. What is wrong. The url's are dynamically generated that's why it has to be passed as a parameter and echo'd. What is wrong. This doesn't work to redirect.