in reply to Extracting selected values from HTML Select Menus

I might be stating the obvious, and forgive me, but why don't you just hardcode this in HTML or HTML::Template? Unless I'm totally misunderstanding what you are trying to do, I think you are trying to pound in a tack with sledgehammer. It's okay to use HTML.


—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot
  • Comment on Re: Extracting selected values from HTML Select Menus

Replies are listed 'Best First'.
Re^2: Extracting selected values from HTML Select Menus
by kjg (Sexton) on Mar 14, 2005 at 12:14 UTC
    Well I could do, but forgive me for being dim, how would I then find out the selected value in Perl? Don't forget that I then want to use that value to either a:) open a file which correcpsonds to that value or b:)upload that file depending on whether the file exists already or not.

      Are you using CGI?

      HTML: <form action="filecheck.pl" method="post"> <select name="filename"> <option value=... </select> </form> PERL: use CGI; my $query = new CGI; my $filename = $query->param('filename'); do stuff....

      Am I tracking or not?


      —Brad
      "The important work of moving the world forward does not wait to be done by perfect men." George Eliot