I have an existing HTML form on a secure page - the attached word doc contains screenshots of the form so you can see it.
I want to update the form to send emails to different addresses depending on the information filled in. For example if either or both of the first 2 products were ordered, then an email containing the order in a easy to read format must go to one address. At the same time if any of the next 3 products were ordered then those details would go to a second address etc.
The order details in the emails should look similar to the form to make it easy to read.
I will provide the HTML file of the form - the existing post script must be used as it writes to our database.
I will also provide a list of the email addresses to be used for which products, the updated form or scripts must allow for easy editing of these email addresses in case they need to change later.
Note that the updated form must be in a .php file as it can ONLY be included into the webpage (our content editor works that way). No problem with the form calling other script files - these could also be included as 'inc files in the webpage, or be kept in the 'media' folder.