Loading a php success message within a modal window same as the form

那年仲夏 提交于 2019-12-06 01:34:13

Merge both files into one and make sure it has a PHP extension .php.

Then set your form action to action="<?php $_SERVER['PHP_SELF']?>"

and then underneath @mail($email_to, $email_subject, $email_message, $headers);

add header("Location: thank_you.htm");

That worked for me, but it added #openmodal to the web address. It works to a certain extent, and you may have to modify your modal script to fix that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!