Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onclick and database update

Status
Not open for further replies.

Ouch

Programmer
Jul 17, 2001
159
GB
I have a form page that sends data to another page that is on a diffrent server, i don't have design access to the second page,

as well as sending to the second page i need to update my own database.

is ther a way using one page to update a database?

or post to two diffrent pages one being hidden so the users doesnt see anything?

i am at a loss of how to get the result i need any help would be very much appreciated
 
may be update your datavase then redirect the form to the next server (with form data). An answer by Tarwn on a previous post may help you:

thread333-305467
 
oh, may be it cant transfer form data across domains then, bummer!

how about when you come into your asp page, update your database first, then write out all the form data again to the browser and submit to the other server as soon as the page load event fires.

Wll that other server redirect back to your page though?
 
how do i use the page load event?
 
You have to use client script like this:

<script>
function myfunction() {
document.getElementById(&quot;frm&quot;).submit();
</script>

<body onload=&quot;myfunction();&quot;>
<form name=frm actiion....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top