Ajax Contact Form Problems - No email being sent

前端 未结 2 852
耶瑟儿~
耶瑟儿~ 2021-01-25 19:06

Sorry for being a noob but I\'m trying my best. I\'ve done and read everything I could find and I have never got this to work. Would really appreciate the help. The form id matc

相关标签:
2条回答
  • 2021-01-25 19:23

    Your textarea has a name="message" whereas you are looking for isset($_POST['text']) in the submission handler code

    0 讨论(0)
  • 2021-01-25 19:28

    Maybe your js code run before jQuery has been loaded. Try to include jQuery before other js files:

    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script src="js/jquery.dropotron.js"></script>
    <script src="js/skel.min.js"></script>
    <script src="js/skel-panels.min.js"></script>
    <script src="js/init.js"></script>
    <script src="js/contact.js"></script>
    

    By the way, you just need to include jQuery once, not twice.

    0 讨论(0)
提交回复
热议问题