in reply to Passing 'SELECT MULTIPLE' parameters and CGI

Not really Perl-related. See the documentation of select multiple attribute: you have to set it to "multiple" to get it working.
  • Comment on Re: Passing 'SELECT MULTIPLE' parameters and CGI

Replies are listed 'Best First'.
Re^2: Passing 'SELECT MULTIPLE' parameters and CGI
by viffer (Beadle) on Aug 17, 2010 at 14:25 UTC
    i do have it set to multiple
    <select id="runs" name="runs" multiple="">
    but thanks anyway.
      Oh, you are right, ok.

      Why are you transforming the output of the form with javascript? The form can send its data itself. You may also check the actual value of the runs variable in the javascript code by adding alert(runs) right after the assignment var runs = ....

        I wasn't using javascript originally, I changed to using it cos I couldnt get it to work using just the form.
        I can see the 'runs' variable is only set to one value in firebug.
        Ta for your time tho :)
Re^2: Passing 'SELECT MULTIPLE' parameters and CGI
by rowdog (Curate) on Aug 18, 2010 at 13:57 UTC

    Well, while w3schools is full of good stuff, they happen to be wrong about multiple. According to HTML 4.01 multiple is a boolean flag that is set or not, thus

    <select id="runs" name="runs" multiple>