by Larisa Thomason,
Senior Web Analyst,
Create A Select And Go Menu
In this example, we're going to create a SELECT menu that you can use to navigate through NetMechanic's Web tools. The first option - "Explore our site" - is merely descriptive: it doesn't take you anywhere, and just explains the purpose of the menu. The other options will take you to free trials of our Web tools. Use your browser's BACK button to return to this article.
Use the menu options to navigate through the NetMechanic Web Site
When you select an option, that value between 0 and 4 is passed to the variable nextPage. The function doesn't change the page if the descriptive value (Explore our site) is the selected value. If any other value is selected, your visitor's browser requests the selected page URL from the server.
The actual HTML code for the SELECT menu goes in the BODY, inside a FORM tag:
You'll need to have access to a CGI bin on your server though, since a CGI script is the only other way to change pages within a form. Most web hosts have predefined CGI scripts that you can include on your Web page. Check with your host to see if they have a CGI script to jump from one page to another. You can also browse through free CGI scripts at the CGI Resource Index.
You will have to change your FORM tag slightly and add a <NOSCRIPT> tag:
The opening FORM tag should read:
Put the NOSCRIPT tag after the </SELECT> tag, before the closing FORM tag.