By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,497 Members | 2,113 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,497 IT Pros & Developers. It's quick & easy.

Post a form two different URLS

P: n/a
I have a sticky problem relating to my 'join' registration form inside our
authenticatin system...

We have just signed up for salesforce.com and I need to somehow integrate
the canned web-to-lead form from salesforce inside my login/registraiton
system without messing up the existing 'join' form.

My registration form is built on top of database while the salesform form is
statically generated form which is similiar but not exactly the same.

Is there way to either:

1. Post to two different urls at once for my main Join form.
2. Or, perhaps 'hide' the salesforce.com form and somehow populate the
values in the form and when the visitor clicks my Join form it also posts the
sf form?

Any help appreciated...it is messy!

Jason
Jun 1 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hello Jason,

A form can only be posted to one URL. So, your second thoughts maybe work:
we can create two frames in one page, one for your web application and
another for saleforce one; When the Submit button on your web page is
click, we can call some client script to fill saleforce's form and submit
it. I am not familiar with the saleforce's form so that I cannot tell
details on this, but you can refer to this article as a sample:

http://support.microsoft.com/default...;EN-US;Q194227

Hope this help,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 2 '06 #2

P: n/a
Luke Zhang [MSFT] wrote on 02 jun 2006 in
microsoft.public.inetserver.asp.general:
A form can only be posted to one URL.


I don't think so, in general.

Clientside script can onsubmit submit() the form
first to one this.action specified destination,
while the this.target is a [nondisplayed?] iframe,
then after changing this.action [and this.target?]
let the original html submit do it's work

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 2 '06 #3

P: n/a
Hi Jason!
Just a thought ... can't you POST the form to the same page using the
following function (or something derived thereoff, you can easily
adopt it to your needs):

===quote===
Function IncludeHidden(StuffToIgnore)
For each Field in Request.Form
If InStr(IGNORELIST,Field) = 0 Then
TheString="<Input Type=""hidden"" Name=""" &
Field & """ Value="""
StrValue=Request.Form(Field)
TheString=TheString + cstr(StrValue) & """>"
TheString=TheString & VbCrLf
Response.Write TheString
End If
Next
End Function
===unquote===

I made this to collect huge forms & move data from page to page. You
can check for the form being posted, and if indeed posted, build two
forms using the function. Like this:

===quote===
<html>
<% If form is being POSTed then %>
<form name="1" action="url1.htm"><% Call
IncludeHidden("any,fields,you,want,left,out") %></form>

<form name="2" action="url2.htm"><% Call
IncludeHidden("any,fields,you,want,left,out") %></form>

<script>document.1.submit();document.2.submit(); </script>
<% End If 'end check script being POSTed %>
</html>
===unquote===

Ofcourse the page is far from complete, but you'll catch my drift,
maybe ...

Let me know if it works!
- Alex.

On Thu, 1 Jun 2006 12:32:02 -0700, Jason
<Ja***@discussions.microsoft.com> wrote:
I have a sticky problem relating to my 'join' registration form inside our
authenticatin system...

We have just signed up for salesforce.com and I need to somehow integrate
the canned web-to-lead form from salesforce inside my login/registraiton
system without messing up the existing 'join' form.

My registration form is built on top of database while the salesform form is
statically generated form which is similiar but not exactly the same.

Is there way to either:

1. Post to two different urls at once for my main Join form.
2. Or, perhaps 'hide' the salesforce.com form and somehow populate the
values in the form and when the visitor clicks my Join form it also posts the
sf form?

Any help appreciated...it is messy!

Jason


Jun 6 '06 #4

P: n/a
> 2. Or, perhaps 'hide' the salesforce.com form and somehow populate the
values in the form and when the visitor clicks my Join form it also posts
the
sf form?


Yep, you could use the ServerXMLHTTP object from your form to POST to
saleforce.com's form page.

Ben Strackany
www.developmentnow.com
Jun 6 '06 #5

P: n/a
Guys, I thanks for the posts. Do you agree that this may be the simplest
solution of all:

http://www.aspfaq.com/show.asp?id=2153

"Jason" wrote:
I have a sticky problem relating to my 'join' registration form inside our
authenticatin system...

We have just signed up for salesforce.com and I need to somehow integrate
the canned web-to-lead form from salesforce inside my login/registraiton
system without messing up the existing 'join' form.

My registration form is built on top of database while the salesform form is
statically generated form which is similiar but not exactly the same.

Is there way to either:

1. Post to two different urls at once for my main Join form.
2. Or, perhaps 'hide' the salesforce.com form and somehow populate the
values in the form and when the visitor clicks my Join form it also posts the
sf form?

Any help appreciated...it is messy!

Jason

Jun 9 '06 #6

P: n/a
Yes, It is a simple solution. But it is only for submitting the form , we
may need to consider how to fill a form (UserName/Password) before submit
it. For example, add some scrpt code to fill the TextBox before
document.myform.submit();

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 12 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.