我試圖在成功輸入聯繫信息後將我的客戶重定向到我的原始主頁。我如何用下面的PHP表單來做到這一點?在此先感謝您的幫助!成功聯繫表格後,將用戶重定向到原始網站PHP
<?php
// Receive form's subject value into php $subject variable
$subject =$_REQUEST['subject'];
// Receive form's message value into php $message variable
$message=$_REQUEST['message'];
// Receive form's sender name value into php $sender variable
$sender=$_REQUEST['name'];
// Receive form's user email value into php $user_email variable
$user_email=$_REQUEST['email'];
// the email address where the message will be sent
$TO ="[email protected]";
$send_email=mail($TO,$subject,$message,"From: ".$sender."<".$user_email.">");
// To check email has been sent or not
if($send_email)
{
echo "Your E-mail has been sent !";
}
else
{
echo "E-mail sent was failed !";
}
?>
謝謝我會試試看! – user1487308 2013-05-01 17:48:06