I need to post to a DB and send an email template


I have a form which, if I use one type of php file, sends the results via an email template. Change the form processing file to another php file, and it sends the results to a DB. I need to be able to do both from the one form. I know I cannot have 2 posts within a single form, but is there a solution?



You need to combine your code from these 2 php files into one. I would suggest that you take php file where you save posted data to the database, and add there part of the code where you generate and send email, from your second file.

Sponsor our Newsletter | Privacy Policy | Terms of Service