我在http://www.happyholidaylites.com/contact.html有一个非常基本的表格,它工作得很好。当您提交表单时,用户会被带到 index.html,而不会显示表单已发送的消息。我希望使用 x 按钮启动一个警报,上面写着“您的表单已提交”。我的代码如下所示:
<form method="post" id="myForm" action="dynaform.php">
<input type='hidden' name='rec_mailto' value='JBIRD1111@gmail.com'>
<input type='hidden' name='rec_subject' value='New Contact Form'>
<input type='hidden' name='rec_thanks' value='index.html'>
等等等等.....
最后一行是告诉表单在按下提交按钮后要做什么,但我不希望它将浏览器指向索引,而是我想要一个带有成功消息的 javascript 弹出窗口。有任何想法吗?