August 2007
|
|
The above form will look as follows:<FORM ACTION="/cgi-bin/nph-redir.cgi" METHOD="POST"> Destination URL? <SELECT NAME="dest"> <OPTION VALUE="http://www.yahoo.com">Yahoo! <OPTION VALUE="http://www.netscape.com">Netscape <OPTION VALUE="http://www.cnet.com">c|net <OPTION VALUE="http://www.microsoft.com">Microsoft </SELECT> <INPUT TYPE="SUBMIT" VALUE="Redirect Me!"> </FORM>
By clicking on the pull-down list you can select a site. By then clicking on the submit ("Redirect Me!") button, you will be taken to that site.
If you are redirecting to a frameset, you can select a particular frame by putting its name in a field with the name target. An example of redirecting a user to Yahoo, in a frame called main, would look like this:
<form action="/cgi-bin/nph-redir.cgi" method="POST"> <input type="HIDDEN" name="target" value="main"> <input type="HIDDEN" name="dest" value="http://www.yahoo.com"> <input type="SUBMIT" value="Click Here To Visit Yahoo"> </form>
© 1998, The University of Western Ontario. Permission is granted to copy in whole or in part provided that due credit is given to the authors, the Division of Information Technology Services, and The University of Western Ontario.