Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: drop down menus with CGI/Perl

by Anonymous Monk
on Jun 09, 2009 at 12:40 UTC ( #769878=note: print w/ replies, xml ) Need Help??


in reply to Re: drop down menus with CGI/Perl
in thread drop down menus with CGI/Perl

Try this code :

<P>Choose your destination :<BR><BR> <select name="select" onchange="document.location.href=this.options[th +is.selectedIndex].value;"> <option value="http://google.com">optionA</option> <option value="http://yahoo.com">optionB</option> <option value="http://msn.com">optionC</option> </select>
Regds Vivek


Comment on Re^2: drop down menus with CGI/Perl
Download Code
Re^3: drop down menus with CGI/Perl
by d0353101 (Novice) on Jun 09, 2009 at 12:44 UTC
    Try This code, it is using Java Script :
    <P>Choose your destination : <BR><BR> <select name="select" onchange="document.location.href=this.options[th + +is.selectedIndex].value;"> <option value="http://google.com">optionA</option> <option value="http://yahoo.com">optionB</option> <option value="http://msn.com">optionC</option> </select>
    Regds
    Vivek

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://769878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-09-17 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (55 votes), past polls