473,573 Members | 4,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...i t is messy!

Jason
Jun 1 '06 #1
6 2446
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.publi c.inetserver.as p.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(S tuffToIgnore)
For each Field in Request.Form
If InStr(IGNORELIS T,Field) = 0 Then
TheString="<Inp ut Type=""hidden"" Name=""" &
Field & """ Value="""
StrValue=Reques t.Form(Field)
TheString=TheSt ring + cstr(StrValue) & """>"
TheString=TheSt ring & 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.ht m"><% Call
IncludeHidden(" any,fields,you, want,left,out") %></form>

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

<script>documen t.1.submit();do cument.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***@discussi ons.microsoft.c om> wrote:
I have a sticky problem relating to my 'join' registration form inside our
authenticati n 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...i t 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...i t 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
1944
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 variables are undefined for the first time I visit a page. I have register_globals on and on the second visit a page when a certain post variable...
2
4789
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? - Jason
2
1784
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 program is checking the URLs, the text in a label on the current window will not update until after all URLs are checked. I think the Form/Window is...
16
2055
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, sketching it out: <?php if (isset($_POST) && $_POST=="Submit") { ---Do a bunch of stuff--- if (isset($_SESSION)) unset($_SESSION);
4
1391
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
1705
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 manage.aspx web form uses the view state, has some web controls that can cause post back and so on: it's a classic POST web form. In that page...
6
2711
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 different sites from buttons or links to financial sites such as Yahoo Finance, BigCharts, Routers, etc. Each of those financial sites has a different...
10
2198
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 I came across a thought.... ....why show the visitor loads of junk just because Im using A-href type links? Is there a way to create a...
8
2391
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, modification of a database or subscription to a service), the method should be POST. (http://www.cs.tut.fi/~jkorpela/ forms/methods.html). However,...
0
7741
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7661
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7978
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8028
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2164
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1263
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
987
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.