Google Answers Logo
View Question
 
Q: Need Script that submits a single form to 2 different URLs ( No Answer,   3 Comments )
Question  
Subject: Need Script that submits a single form to 2 different URLs
Category: Computers > Programming
Asked by: alpacaherder-ga
List Price: $20.00
Posted: 11 Apr 2005 14:01 PDT
Expires: 11 May 2005 14:01 PDT
Question ID: 507991
The Goal: To have a single form with one submit button that submits
it's data to two (2) seperate URL's. Each of the two seperate URLs use
different id and names for the same data. It will be submitting the
data to both salesforce.com and jangomail.com.

We also do not want any new windows to popup or any iframes/frames being used.

Request for Question Clarification by hammer-ga on 11 Apr 2005 14:49 PDT
alpaceherder-ga,

Forms don't submit to URLs. Forms submit by performing an action.
Usually that action is a script written in Perl, PHP, ASP, or some
other languge which knows how to read the form data and send an email,
write a record to a database, redirect to a web page, etc.

When you say "submit to two URLs", could you be more specific as to
what you need to have happen? What happens when one of these URLs
"receives" the form submission?

- Hammer

Clarification of Question by alpacaherder-ga on 12 Apr 2005 11:53 PDT
Here is the situation, I have one form with this action:

http://www.jangomail.com/APPLICATION/ProcessGroupSignupForm.asp?emailcat_id=2439244&return_address=http%3A%2F%2Fwww%2Etextlinkbrokers%2Ecom%2Fsign%2Dconfirm%2Ehtml&error_return_address=http%3A%2F%2Fwww%2Etextlinkbrokers%2Ecom%2Flink%2Dmatch%2Derror%2Ehtml&required_fields=FirstName%2C+Newsletter&return_values=y&send_email=rob%40textlinkbrokers%2Ecom

This form submits things like a person's name, email address, etc. I
need that same for to submit to salesforce. Salesforce form action
looks like this:

http://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8


Both salesforce and jangomail require the same fields (name, email,
etc) to be named (id=) different things to record the same
information. We need a way around this, so that the form the customer
fills out on the page sends the information to both these places.

We do not want any frames, iframes or new windows popping up.

Request for Question Clarification by hammer-ga on 12 Apr 2005 12:15 PDT
alpacaherder-ga,

Do you have any control over the ASP script run by jangomail and/or
the servlet run by salesforce?

- Hammer

Clarification of Question by alpacaherder-ga on 14 Apr 2005 11:43 PDT
Salesforce allows us to chose the page they return to after
submitting, I can't find any information about transering variables to
that page also.

Jangomail says you can pass the form values back to your web site via
a querystring. They also have documentation on their setup here:
http://www.jangomail.com/documents.asp
Answer  
There is no answer at this time.

Comments  
Subject: Re: Need Script that submits a single form to 2 different URLs
From: willcodeforfood-ga on 11 Apr 2005 14:56 PDT
 
Unless you can control the page that is returned after a form
submission by salesforce or jangomail, there aren't any browser-only
solutions besides using windows, frames or iframes with scripting. 
Some other solutions include:

1) Submit the data to your own server and have it 
   parse/submit to the two URLs for you.
2) Write an ActiveX control and put it in the browser
   to automate your tasks.
3) Use a browser that is contained inside another application
   and automate the browser from that application.
4) Control the page returned from the first URL submission
   to launch a page that posts to the second URL.  Save data
   between posts in a cookie or get back data from the page
   returned from the first URL submission.

Solution number 1 might be workable for you.  Solution 2 and 3 would
be very messy and 4 is probably not even possible.

Why are you opposed to the windows/iframes/frames solution?
Subject: Re: Need Script that submits a single form to 2 different URLs
From: hammer-ga on 14 Apr 2005 12:52 PDT
 
Researchers,

Please don't let my exchange with this customer stop you from working
on this question. I don't know when I'll be able to look into this, so
if you have a solution, feel free to step in.

- Hammer
Subject: Re: Need Script that submits a single form to 2 different URLs
From: nhaus-ga on 18 Apr 2005 15:05 PDT
 
This is not a single form as such but if I understand what you are
trying to do correctly then it should work.

<html>

<form name="thisone" method="post" action="jango">
<input type="submit"onclick="document.thatone.submit();">
<input type="text" name="myVar" value="this" />
</form>

<form name="thatone" method="post" action="salesforce">
<input type="text" name="myVar" value="this" />
</form>

</html>

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy