Use a form submission to redirect users to specified URLs. You can
use both option lists and buttons. Advanced users can also write all
redirect activity to a log file.
A redirect sample is available:
Use Redirect with an Option List
You can use the redirect script with an option list as follows
(replacing the URLs and option text as appropriate):
<FORM METHOD="POST" ACTION="/cgi-t/redirect">
<SELECT NAME="url">
<OPTION VALUE="http://www.ask.com/">Go to Ask.com</OPTION>
<OPTION VALUE="http://www.google.com/">Go to
Google</OPTION>
<OPTION VALUE="http://www.msn.com/">Go to
MSN</OPTION>
</SELECT>
<INPUT TYPE="submit" VALUE=" Go! ">
</FORM>
Use Redirect with Buttons
You can use the redirect script with buttons as follows (replacing
the URLs and button text as appropriate):
<FORM METHOD="POST" ACTION="/cgi-t/redirect">
<INPUT TYPE="submit" NAME="http://www.ask.com/" VALUE="Go to
Ask.com">
<INPUT TYPE="submit" NAME="http://www.google.com/" VALUE="Go to
Google">
<INPUT TYPE="submit" NAME="http://www.msn.com/" VALUE="Go to
MSN">
</FORM>
Alternate Redirect Methods
The script can redirect any input value or name that is a qualified
URL. You can therefore use field values, radio buttons, check boxes,
or any other type of form element, as long as the value or name is a
qualified URL (i.e. http://www.yourname.com/filename.html).
Redirect Logging
FastVirtual also provides an alternate script for advanced users
that may wish to log their redirect activity. RedirectADV functions
identically to the normal redirect script, which the exception that
all redirects are written to a log file.
To use this script, simply replace "redirect" with "redirectADV" in
your forms.
Log files are named "redirect.log", and are stored in your "logs" directory,
one level
above your document root ("htdocs"). Simply open or download
this file using
FTP or
Webby (you cannot access this directory with FrontPage).
Note: Log files are occasionally purged. If you wish to
retain your redirect logs, you should download this file on a regular
basis (i.e. monthly).
|