朋友..!執行聯繫表格代碼後php重定向
我想幾秒鐘到PayPal payflow的環節後重定向:
接觸表單中輸入信息,然後點擊發送,然後顯示電子郵件後已成功發送etc..as
接觸形式processer代碼如下:
<?php
$cardlink = $_POST['cardlink'];
$howmuch = $_POST['howmuch'];
$name = $_POST['name'];
$email = $_POST['email'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$website = $_POST['website'];
$comments = $_POST['comments'];
$formcontent="Card Image Link: $cardlink \n How much cards: $howmuch \n From: $name \n Email: $email \n Address: $address \n Phone: $phone \n Website: $website \n Additinal Informations: $comments";
$recipient = "[email protected]";
$subject = "Card Designig Order By : $name ";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
// Email has sent successfully, echo a success page.
echo "<fieldset>";
echo "<div id='success_page'>";
echo "<h1>Email Sent Successfully.</h1>";
echo "<p>Thank you <strong>$name</strong>, your message has been submitted to us.</p>";
echo "</div>";
echo "</fieldset>";
?>
和火線觸點形式是在此鏈接:http://www.webngraphicssolutions.com/new_site/html_purple/web-contact-form-order-now/index.php
但我希望在5秒鐘後重定向..!也形式是基於ajax ..所以它不會加載時發送電子郵件發送成功後出現點擊發送我的意思是在subimitting之後,所以它會與JavaScript中的window.load函數.. –
進一步檢查請檢查它現場在這個鏈接你會知道它不會加載submision:http://www.webngraphicssolutions.com/new_site/html_purple/web-contact-form-order-now/index.php –
相應地修改我的答案。 – adesh