How to get the sucess message in the same page after submitting the contact form?

前端 未结 5 1450
再見小時候
再見小時候 2021-01-02 11:31

I have created the contact form using HTML and PHP. Also, the mail is coming correctly to mail id. But after the success message, it is redirecting to the form.php

5条回答
  •  醉梦人生
    2021-01-02 12:06

    try this way . try to send mail from an ajax . Please write your code like below

    javascript

        
    

    Your html

    send_mail.php

    
    

    this will display your message in your page.Please try this. This is working fine in my case.

提交回复
热议问题