Just contact CGI please do me a favor

I want to write a program, to have a drop-down menu, there are a few sites, I want to select one of the site, and then click on the button on the side of will jump to the site, how to achieve it?

#!c:/perl/bin/perl.exe
print "Content-type:text/html\n\n";
print<<"END";
<HTML><HEAD><TITLE>The website</TITLE></HEAD>
<BODY>
<H1> which websit would you like to visit </H1>
<select>
<option value ="http://www.google.com">google</option>
<option value ="http://www.bbc.co.uk">bbc</option>
<option value="www.port.ac.uk">portsmouth</option>
<option value="http://www.cnn.com">cnn</option>
<input type="submit" value="Click me" />
</select>
</BODY>
</HTML>

END

This is a page. How can the website link and back together after the choice of the button click jump. Please. . .

Started by Sammy at November 18, 2016 - 12:13 AM

This PERL is not suitable for static page can do it.

Posted by Wayne at November 26, 2016 - 12:28 AM

Using JavaScript.

Posted by Tyler at December 09, 2016 - 12:52 AM

He wanted to practice, not asked what could be more simple. . . .

Posted by Chester at December 15, 2016 - 1:44 AM

In the name of the website back to plus its corresponding link.

Posted by Sidney at December 27, 2016 - 2:30 AM

If you are using CGI to do so, for select and name
Call the CGI program on the button, the value from the select name in the program

Posted by Lewis at December 28, 2016 - 2:44 AM

The reply to 2011-12-22 09:32:09 was a moderator to delete

Posted by Bradley at January 09, 2017 - 3:21 AM