
Help visitors navigate your web site. Our affiliate tip is to use this simple, free drop-down menu script.
Install in cgi bin as menu.cgi, and CHMOD permissions to 755 (RWXRXRX)
===========================
#!/usr/bin/perl
# Receive info from Posting
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
# Process info from Posting
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$INPUT{$name} = $value;
}
$link = $INPUT{'link'};
print ("Location: $link
");
exit;
===========================
Next, create your drop-down menu HTML form, using the code below
Note 1: Make sure the drop-down Name is: link
Note 2: Change yoursiteurl.com to your domain name
Note 3: Then upload page to your web server
===========================
<form method="POST" action="http://yoursiteurl.com/cgi-bin/menu.cgi">
<p><select size="1" name="link">
<option value="http://yoursiteurl.com/yourpage.html">Link Name 1</option>
<option value="http://yoursiteurl.com/yourpage.html">Link Name 2</option>
</select><input type="submit" value="Submit" name="B1"></p>
</form>
===========================
That's all there is to it! Now you'll have a convenient, simple drop-down menu script to help your visitors navigate your site without taking up a lot of space!
This lesson was provided free to affiliates, courtesy of Pulsar Marketing. Discover why more and more affiliates are switching to Pulsar Marketing.
Not yet an affiliate of Pulsar Marketing?
Earn top commissions - affiliate program registration
