联系表单提交和包含功能后重定向URL

时间:2014-07-29 17:28:06

标签: url redirect

我为我的网站www.pearsonkoutcherlaw.com创建了以下代码:

<?php
                if (isset($_POST['formSubmit'])) {
        header("location: http://www.pearsonkoutcherlaw.com/abl-form-submit/"); exit;
                    print "<p style=\"font-weight:bold;\">Form has been sent!</p>";
                    print '<p>Thank you for your submission. </p>';
                    print "<p>What You Sent</p>";

                    print "<b>Name:</b><br/>".$name."<br/><br/>";
                    print "<b>Email:</b><br/>".$email."<br/><br/>";
                    print "<b>Phone:</b><br/>".$phone."<br/><br/>";
                    print "<b>Message:</b><br/>".$message."<br/><br/>";

                } else {      ?>``

因此,提交后,用户将被重定向到http://www.pearsonkoutcherlaw.com/abl-form-submit/。但是,我还想要打印功能,“表格已发送”,“感谢您的提交。”出现在重定向页面上?

我该怎么做?

谢谢,

梅根

0 个答案:

没有答案