Passing $_GET value to $_POST

if i understand you correct, you just want put all variables from $_GET to $_POST?

foreach ($_GET as $key => $value) {
    $_POST[$key] = $value;
    unset($_GET[$key]);
}

print "<pre>";
var_dump($_POST);
print "</pre>";

hope it helps… but at all i think there should be another way to get your vars to your file

Leave a Comment