in reply to drop down menus with CGI/Perl

I'd preferably like this drop down menu to not have a submit button either, but to submit as soon as an option is selected from the menu

This part has nothing to do what the server-side language is -- you have to do it in javascript. Attach an onChange event to the select element.

Replies are listed 'Best First'.
Re^2: drop down menus with CGI/Perl
by Anonymous Monk on Jun 09, 2009 at 12:40 UTC
    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
      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