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

Form submition

Status
Not open for further replies.

carlosAlberto

IS-IT--Management
Oct 9, 2001
109
GB
Hi,

I would like to change the location of the browser window after submitting the data to a cgi script.

Is it possible to use the following, only it doesn't seem to work.....

<form method=post action=&quot;/cgi-bin/formdata.cgi? domain.com&quot;>


Thanks,
 
Can you not use the cgi script to output data back to the browser. You could even get it to write JavaScript Code that will automatically redirect the page to the one you want. Mise Le Meas,

Mighty :)
 
Hi Mighty,

Do you mean If i wrote a blank screen then got it to automatically re-direct when loaded???

Yeah that sounds OK (not sure how to do it though)

It would also need to pass values but i don't think that should cause a problem.

carlos.
 
All you have to do is have your cgi program print a redirect command to the browser. In perl the syntax is:
Code:
print &quot;Location: [URL unfurl="true"]http://www.somewhere.com\n\n&quot;;[/URL]
That's an HTTP command, no html, no javascript, no sweat.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top