On the middle page of the process, an email of visitor textbox entries
should be sent upon submit and a new page should open carrying the
data.
Code: Select all
$entries="First Name: $firstname\nLast Name:
$lastname\nButton: $applying $more_information";
mail ("email@big_isp.net", "this subject", $entries);
header ('Location: next_page_url.com/confirmation.php'?.$_SERVER
['QUERY_STRING']);blank page.
Without appending ?.$_SERVER['QUERY_STRING'] , the emal is sent, and
the next page opens.
Using javascript, appending $_SERVER['QUERY_STRING'] does work:
Code: Select all
<script language="javascript" type="text/javascript">
function redirectPage()
{
window.location.href="<?php echo
'next_page_url.com/confirmation.php?'.$_SERVER['QUERY_STRING']; ?>";
}
</script>I also tried
Code: Select all
header ('Location: next_page_url.php'?GETvar'.$_SERVER
['QUERY_STRING']');Code: Select all
header ('Location: next_page_url.php'?POSTvar'.$_SERVER
['QUERY_STRING']');Any suggestions?