jQuery AJAX form using mail() PHP script sends email, but POST data from HTML form is undefined

前端 未结 6 1616
青春惊慌失措
青春惊慌失措 2020-11-27 05:07

Thanks for taking the time to look, guys. I\'m creating a pretty basic AJAX contact form using jQuery. The email sends, but upon opening the email there is no POST data, so

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 05:38

    Your PHP script (external file 'email.php') should look like this:

    
    

提交回复
热议问题