Welcome to WebmasterWorld Guest from 18.232.124.77

Forum Moderators: phranque

Message Too Old, No Replies

submit 2 forms to two destinations simultaneously

Transparent email function needed

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

New User

10+ Year Member

joined:Oct 3, 2008
posts: 5
votes: 0


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?

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

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


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).

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 20, 2004
posts:2377
votes: 0


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.