Hi,
I have a php script (got from vodahost) to my root directory at http://www.pantryhamper.ie which is working fine but as the message that you view when published is clashing with the websites coluors(background & text) then I wish to clone a web page and place my message here and automatically redirect to this page when online form is submitted.
Can I add a redirect code to my existing php script so as to allow this while keeping the form working in every other aspect?
If yes then where do I add this code and what exact piece of code do I need?
The php scrip that I have already in use is as follows.........
<HTML>
<HEAD>
<TITLE>SUCESSFULLY PROCESSED YOUR ORDER/ENQUIRY</TITLE>
</HEAD>
<BODY>
<H2>thank you for your order/enquiry to pantry hamper.a member of pantry hamper will reply as soon as possible!</H2>
<?PHP
$email=$HTTP_POST_VARS[email];
$mailto="info@pantryhamper.ie";
$mailsubj="Online Order/Enquiry Contact Form";
$mailhead="from:$email\n";
reset($HTTP_POST_VARS);
$mailbody="Values submitted from website form:\n";
while(list($key,$val)=each($HTTP_POST_VARS))
{
$mailbody.="$key:$val\n";
}
mail($mailto,$mailsubj,$mailbody,$mailhead);
?>
</BODY>
</HTML>
Thanks,
Liam
I have a php script (got from vodahost) to my root directory at http://www.pantryhamper.ie which is working fine but as the message that you view when published is clashing with the websites coluors(background & text) then I wish to clone a web page and place my message here and automatically redirect to this page when online form is submitted.
Can I add a redirect code to my existing php script so as to allow this while keeping the form working in every other aspect?
If yes then where do I add this code and what exact piece of code do I need?
The php scrip that I have already in use is as follows.........
<HTML>
<HEAD>
<TITLE>SUCESSFULLY PROCESSED YOUR ORDER/ENQUIRY</TITLE>
</HEAD>
<BODY>
<H2>thank you for your order/enquiry to pantry hamper.a member of pantry hamper will reply as soon as possible!</H2>
<?PHP
$email=$HTTP_POST_VARS[email];
$mailto="info@pantryhamper.ie";
$mailsubj="Online Order/Enquiry Contact Form";
$mailhead="from:$email\n";
reset($HTTP_POST_VARS);
$mailbody="Values submitted from website form:\n";
while(list($key,$val)=each($HTTP_POST_VARS))
{
$mailbody.="$key:$val\n";
}
mail($mailto,$mailsubj,$mailbody,$mailhead);
?>
</BODY>
</HTML>
Thanks,
Liam
Comment