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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending variables, without going to page

Status
Not open for further replies.

krappleby025

Programmer
Sep 6, 2001
347
NL
Hi i am trying to send some variables to another site, But i do not want to redirect the page to that site.... basically i am sending a message to my icq. but it keeps going to the site... what i have so far is

<form action=&quot; method=&quot;post&quot;>

i do not want to go to this page, which it keeps doing, how do i stop that, i want to go to a page called, Signupdone.asp on my own server

any help would be appreciated... thanks
 
Well, actually you can't do what you want to do per say. However, you can come really close.

My idea would be to create a frameset with a tiny frame at the bottom of the page. Inside that &quot;almost invisible&quot; frame, load a page with your form, including the field names, as hidden fields. Leave the values empty in this form. Create a form in the main page with actual text boxes, select lists, etc... Instead of submitting the form on the main page, use a button to fire a JavaScript function that takes all of the values from the form on the main page and populates the hidden fields in the almost invisble frame and then submits that form. Then set a 2 second timeout on the next line in the JavaScript to navigate the main frame to your signupdone.asp page.

Of course, you'll have no idea whether or not the form post was successful or not, but that's the best you're going to be able to do.

If you need an example, I would be happy to provide.

ToddWW
 
unfotunately i know nothing about jave, can you tell me where to go to get the scritp
 
I'll tell you what. I'll split the work with you which will make it much easier. Send me the entire form. I'll slighly modify that form and send back a javascript function and an additional page to put in the frameset.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top