I have created a form in Adobe Dreamweaver CS4 and I am using PHP and MySql. Currently,when user hits the submit button,it captures data in the form and submits it to a MySql table.What I would like it to do is to send an email to me notifying that a form has been submitted,along with a summary of the data entered in the form.So, essentially I want to execute two behaviours on click of submit button. I would really appreciate if someone could help me with it.
最简单的方法是使用之前的mail()函数或者调用mysql_query。
Read some examples on how to send mails with PHP and then just iterate through that $_POST array, outputting the key and it's value for every entry. That way you'll get a true dynamic application which mightn't be pretty but easy and powerful.
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.