I need to redirect to a page with POST_VARS send to the first page.
I use "heder(location: ...)" to do this, but POST_VARS are lost ?
how can I manage ?
Thanks !
<?php
session_start();
if($valid){ //this is a post_vars
$redirect = preg_replace("/(.+\/).*$/","\1otherPage.php4",$HTTP_REFERER);
header("location: $redirect");
exit();
}
?>