473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Post a form two different URLS

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
6 2436
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
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
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
> 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dave | last post by:
Hi folks, I seem to be using these newsgroups a good bit and probabely will be for the next three or so months. I wonder if there is a workaround to a problem I'm having. PHP always says that...
2
by: jason | last post by:
Is it possible to POST a FORM to multiple URLS at the same time....OR.... Is the only workaround for this scenario to use response.redirect in the called ASP page and do a multi processing? -...
2
by: Lentdave67t | last post by:
Thank you in advance for any help you can provide. I am writing a C# program that checks to see if the URLs of favorites/bookmarks are still good. The problem I am having is that while the...
16
by: Shelly | last post by:
(posted previously on comp.lang.php but no response received. Cross-posted in the dreamweaver forum) I am confused about what goes on with method POST. Here is an overview of a my code,...
4
by: ElanKathir | last post by:
Hi , What is the different between Post and Get mothed in ASP.Net ? Thanks & Regrads Elankathir, B'lore, India.
1
by: Gabriele Zannoni | last post by:
Hi to all, I have an aesthetic problem to solve. I'm working on the managing part of a site. Some pages can be called with a query string like this: http://mysite.com/manage.aspx?code=300 The...
6
by: Dan | last post by:
Hi all- I am trying to create a simple webpage to save me some time. The general idea is create a form where I can type in the ticker symbol of a company (ex: MSFT) and then select a bunch of...
10
by: Trammel | last post by:
Hi, Im just about to start developing a new website for personal / friend use that may be accessed by other people all over the web. I was sitting thinking through designs for the pages, etc when...
8
by: Kurda Yon | last post by:
Hi, I have to decide which form-method I should use (GET or POST). I found the following recomendation: If the service associated with the processing of a form has side effects (for example,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.