I am using single template that is index.html
. In contact us section after submitting the form " Thank You, Your message has been sent successfully " should be shown in the same page and place without reloading to another page. We are using mail-contact.php code as form action="mail-contact.php" data-ajax="false" method="post" class="form"
in index page.
mail-contact.php
contains the entire index page code and with some added validation code in contact form, thank you message. So when I click on submit button in contact form it is redirecting to mail-contact.php
and showing the starting of the page. But I need after clicking submit button it should show thank you message in index page itself.
我认为最好的解决方案是使用“ flashbag”消息。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.