Now we create a
<FORM ACTION="../cgi-bin/redirect.pl" METHOD=POST onSubmit="return dropdown(this.gourl)"> <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination... <OPTION VALUE="/tags/" >Guide to HTML <OPTION VALUE="/" >Idocs Home Page <OPTION VALUE="http://www.ninthwonder.com" >Ninth Wonder </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM>
<OPTION VALUE="http://www.ninthwonder.com" >Ninth Wonder
indicates that the URL is
http://www.ninthwonder.com and the menu option should read
Notice that the first option, the one that reads "Choose a Destination...", has an empty string as its value. That empty string tells the script that the user didn't really choose a URL and it shouldn't do anything.
../cgi-bin/redirect.pl (we've already got the CGI set up for you) which uses good old fashioned HTTP to redirect the browser.
This technique also allows you to target the list at another frame. We'll look at that next.Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.