Creating Websites That Work! Call Toll Free at 1-877-530-7993 For Assistance With Your Web Needs.
Design Solutions
E-commerce
Hosting Plans
Other Services
PERL - Quick Navigation with Dropdown Boxes

1.) Below is the perl script, upload to your cgi directory and chmod 755

#!/usr/local/bin/perl

#Location of Perl on your server
#Use cgi.pm
use CGI;

$query = new CGI;
$url = $query->param('gowhere');
$server = $query->server_name();


print "Window-target: _top\n";
print "Location: http://$server$url\n\n";

exit 0;

2.) Place the folowing code in your html, change the bold text to your info as well a the actual form contents, etc. Just make sure the slect name is gowhere

<form method="post"
action="location of script above ex. navigate.pl">
<font size=2><p align="center">

<select size="1" width="80" name="gowhere">
<option>Choose Category</option>
<option>---------------</option>
<option value="where to go, example /design/index.html ">Design</option>
<option value="another address">Address</option>
</select></font><BR>
<input type="submit" value="Submit">

</p>
</form>

 

Learning Center
About Us
Create-A-Website provides you with professional custom web solutions at affordable prices!