Redirection

Manic's redirection script gives you the ability to send users to a different URL based on the data they submit in a form. There are two main ways in which redirect is used:

Demo and Sample code
    1. As a list of options: (try it!)
    with code like this:
    <FORM METHOD=POST ACTION="/cgi-t/redirect">
    <SELECT NAME=url>
    <OPTION VALUE="http://www.netscape.com">Go To Netscape
    <OPTION VALUE="http://www.yahoo.com">Go to Yahoo!
    <OPTION VALUE="http://www.infoseek.com">Go to Infoseek
    </SELECT>
    <INPUT TYPE=SUBMIT VALUE="  Go!  ">
    </FORM>
    

    2. As a series of buttons: (try it!)
    with code like this:
    <FORM METHOD=POST ACTION="/cgi-t/redirect">
    <INPUT TYPE=SUBMIT NAME="http://www.netscape.com" VALUE="Go to Netscape">
    <INPUT TYPE=SUBMIT NAME="http://www.yahoo.com" VALUE="Go to Yahoo!">
    <INPUT TYPE=SUBMIT NAME="http://www.infoseek.com" VALUE="Go to Infoseek">
    </FORM>
    

    Keep in mind that redirect uses any input that looks like a URL (either a name or a value). You can use this behavior to your creative advantage, and redirect someone based on check boxes, form input, etc. Make sure that you provide fully qualified URLs (i.e. http://machine.name/file.name).

Main | Signup | Hosting | Design | Webmaster Resources | Contact Us!




Copyright © 1996-2000, Manic Design
support@manicdesign.com