473,811 Members | 2,586 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 2461
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
1960
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 'has' a value and been defined. Here's a bit of code I'm working with now.
2
4806
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
1792
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 frozen while the http requests are occuring. Does anyone know of a way I can update the Form in real...
16
2075
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
1401
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
1715
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 there's a navigation control that changes (virtually) the query string. Virtually means that the query...
6
2732
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 format for their URLs such as...
10
2221
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 text-link that will request a page using POST instead of GET?
8
2405
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, later I did not find any convinced arguments why it should
0
9728
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10648
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10402
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10135
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9205
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3018
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.