Click to See Complete Forum and Search --> : multiple actions attached to one button


shayag
11-23-2003, 01:39 PM
I want to create a button that sends a form to a cgi script on another site, but instead of switching to that site, I want it to send the browser simultaneously to another url instead. In other words, I want clicking the button to accomplish two things at once: post the info to the server, and switch to another url. Is this possible? I'm a newbie, so please be as explicit as possible.

Khalid Ali
11-23-2003, 01:59 PM
You can not do that...
Once action attribute of the form executes the page is no longer in scope,hence which ever action is executed first....thats ayou 'll be able see happening.

On the other hand you can redirect from the webserver using some server side programming language..