473,569 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Submission

With Java script when a user hits submit on a form on my site, is it
possible to take the values from the form and submit them to another
form on another Url without the user who submitted the form on my site
knowing?

Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site

Please help.

Thank you.

Feb 25 '06 #1
7 2001
de****@hotmail. com wrote:
With Java script when a user hits submit on a form on my site, is it
possible to take the values from the form and submit them to another
form on another Url without the user who submitted the form on my site
knowing?
Whenever you say "Do X without the user knowing" then you are probably
trying to do something you shouldn't be.
Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site


No. You can't get the user's browser to make an HTTP request to another site
without it being obvious to the user (i.e. opening a new window or leaving
your site in the main window).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 25 '06 #2
VK

de****@hotmail. com wrote:
With Java script when a user hits submit on a form on my site, is it
possible to take the values from the form and submit them to another
form on another Url without the user who submitted the form on my site
knowing?

Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site


It is not a JavaScript question, pure HTML:

....
<iframe name="dumpster" src="foobar.htm l"
width="10" height="10" style="display: none">
....
<form name="frm1" action="toOther URL" target="dumpste r">
....
</form>

To others: this is so well known trick that there is no sense to hide
it. Better show it here rather than let learn it "from the street" :-).

One can get a "revenge" when OP will ask to get data back and forth
between body and iframe (this is always the second question :-)

Feb 25 '06 #3
VK wrote:
Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site
<iframe name="dumpster" src="foobar.htm l"
width="10" height="10" style="display: none">
...
<form name="frm1" action="toOther URL" target="dumpste r">


Wouldn't work. The user wouldn't get the thank-you page.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 26 '06 #4
David -

My reason for this is that I runs several directories. I want to allow
users to submit at one and also choose to get a submission in the other
directories I run. But I do not want them to see all the back end
processing to submit to the other directories I run I just want to show
them a thank you page and then have the submission happen to the other
directories on the back end.

Any idea on how I can accomplish this?

Feb 26 '06 #5
wrote on 26 feb 2006 in comp.lang.javas cript:
My reason for this ....


"this"?

Please quote what you are replying to. This is usenet not email.

If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers. <http://www.safalra.com/special/googlegroupsrep ly/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 26 '06 #6
de****@hotmail. com wrote:
My reason for this
Reason for what? http://www.safalra.com/special/googlegroupsreply/
is that I runs several directories. I want to allow users to submit at
one and also choose to get a submission in the other directories I run.
But I do not want them to see all the back end processing to submit to the
other directories I run I just want to show them a thank you page and then
have the submission happen to the other directories on the back end.

Any idea on how I can accomplish this?


Store a list of submissions you have to send to other severs in a database
and then fire them off in batch as a cron job at a later time (perhaps
hourly).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 26 '06 #7
VK

David Dorward wrote:
VK wrote:
Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site
<iframe name="dumpster" src="foobar.htm l"
width="10" height="10" style="display: none">
...
<form name="frm1" action="toOther URL" target="dumpste r">


Wouldn't work. The user wouldn't get the thank-you page.


OP wrote: I just want to show them a thank you page
and then have the submission happen to the other
directories on the back end.


If I got it right then the "Thank you" message is displayed on the main
page - even before the submission happened. That is a trivia to show
something onsubmit with a minimum of scripting. Of course it is more
robust to have some script running onload in the server response (in
case of submission failure).

In a similar situation with cross-domain account management I simply
used borderless iframes with forms:- CSS'ed on the main page so
visually it was like one page. Plus "status" iframe at the bottom where
all submissions go. The beauty of it what it is mostly functional even
with JavaScript disabled. Of course a control over involved domains is
needed so all forms would have the needed layout and style.

Feb 26 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2001
by: Tom | last post by:
I have created the following code for a product select/payment form (don't know if there is a better way) and I have been trying to make the following changes (unsuccessfully so far): 1) Eliminate the submit button and submit the form with onchange. 2) Open the action php page in a new window. I am using this code for different payment...
5
6078
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the Internet. Specifically, marking up a document that will contain multiple related form controls (intended exclusively for client-side scripting) that...
3
2897
by: Jack | last post by:
Hi, I have a asp input form of a financial report. Here most of the fields are text boxes where the user need to input the values corresponding to an item. However, there are few items which are calcuated field. Prior to submission of the information, I would like the user to know what the calculated field be (based on the information input...
2
7030
by: Andy Goldstein | last post by:
I have a table where all the TRs have an onClick handler registered. One (and only one) of the rows has 2 text input boxes, where each textbox has an onChange handler registered. Both the onClick and onChange handlers do some minor manipulation of form data (although they work on different form elements). If the onChange event fires, I need...
3
1903
by: Chris Smith | last post by:
Good morning, Is there a good way to use JavaScript to send a form submission, but get back the response as a string, rather than loading it into a page? I could write the code to send the submission via XMLHttpRequest, but that seems hard... especially implementing multipart-encoded form submission such as required for file upload. ...
8
4770
by: yawnmoth | last post by:
Say I have the following HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <form action="">
6
11877
by: Oleg Konovalov | last post by:
Hi, I have a Java/JavaScript GUI application where I perform a lot of long DB operations , which takes 5-60 secs to perform. Sometimes user double-clicks the button or just gets impatient and clicks again, which created duplicate forcm submission and hence duplicate records. So I am trying to disable the button as soon as it is clicked,...
1
2497
by: Homer | last post by:
Hi, I just got a requirement from my HR department to automate their form submission process and integrate it into the Intranet project that I had just completed Phase 1 of. Because of the short time frame that I've been given, a week to be exact, I do not have the luxury to explore it on my own so here are the requirements: 1. Automate...
1
2245
by: rn5arn5a | last post by:
Nowadays, most websites make use of CAPTCHA to prevent automated Form submission. Can someone please give me examples of how automated Form submission can be achieved? It's not that I intend to do some nefarious activities; rather I don't understand how can automated Form submission be done other than the website developer coding it (for...
8
4345
Megalog
by: Megalog | last post by:
Hey guys.. my turn to ask a question: I'm having a weird issue with a form I've reworked. This form has a combo box, which when used is changing the recordsource of a subform. This subform has no Master/Child relationship set to the main form. Specifically the problem seems to be that everytime the recordsource of the subform is changed, the...
0
7612
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
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
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...
1
5513
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...
0
5219
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...
0
3653
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
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
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
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.