Forum Moderators: phranque

Message Too Old, No Replies

submit 2 forms to two destinations simultaneously

Transparent email function needed

         

Afrodite

12:38 am on Dec 1, 2008 (gmt 0)

10+ Year Member



I am using my shopping cart (Romancart) to calculate the results of various options chosen from dropdown boxes. However, I want to gather the email of anyone who does this so I can monitor how many people are using this form. I have tried using Javascript to submit both forms at once, but I can't get this to work properly because all the email scripts I have tried insist on sending a notification that an email has been sent whilst the user should only be taken to the shopping cart page.

What I really want to happen is that the user fills in their name and email then chooses their options. Then, when they submit, their details are validated and then the form takes them to the shopping cart whilst simultaneously sending me an email with their details.

Is this possible and does anyone have a solution?

coopster

2:18 pm on Dec 1, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Here is one possible solution:
Multiple submissions from one form [webmasterworld.com].

You can use your own form to process and send the email and then either process the POST form data yourself or read the POST the form details and submit them through an open socket to another form process on another site (if that is the requirement).

maximillianos

11:45 pm on Dec 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use Ajax. It allows you to make an asynchronous call back to your server from the browser without leaving the page. We send emails this way for our "email this page" functionalty.