[Tutor] webbrowser
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Tue, 17 Jul 2001 21:23:37 -0700 (PDT)
On Tue, 17 Jul 2001, D-Man wrote:
> On Tue, Jul 17, 2001 at 04:08:14PM -0700, Michael Emperador wrote:
> | I am running on Linux Suse7.2. I have a form(on my personal site) that
> | calls this cgi script.
> | Based on input, it will redirect to another page on the server(i.e., a
> | personal page). This is what I'm trying to open in a browser. I'm simply
> | trying to get to a another page based on user input. I would greatly
> | appreciate your input and any advice you could share.
>
> Oh, I see. That's a bit different. You don't want to run a browser
> from the script, you want to return an HTTP redirect to the client
> (browser) that submitted the form.
There's a special META tag that can perform a redirect. If you send as
your CGI's content the following tag:
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=textOnly.htm">
most web browsers will respect this and automatically redirect to whatever
page you want.
For another example, take a look here:
http://www.cs.sunysb.edu/faq/howto/sample_redirect.html
Good luck!