in reply to multiple values and CGI.pm

Looks to me like the code should work fine. How are you testing it? What results are you getting?

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: multiple values and CGI.pm
by Kolyan (Beadle) on Mar 22, 2001 at 17:15 UTC
    I wasn't clear enough in my question.
    When (for example) I put 1 into first textfield and 2 into second I get the following html as a result:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <HTML>
    <HEAD><TITLE>Untitled Document</TITLE></HEAD>
    <BODY>
    <FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
    --------------------------------
    The problem is on the next line:
    --------------------------------
    <INPUT TYPE="text" NAME="name" VALUE="1"><INPUT TYPE="text" NAME="name" VALUE="1">
    <INPUT TYPE="submit" NAME=".submit"></FORM>
    --------------------------------
    The rest work as I expected:
    --------------------------------
    first: 1
    second: 2
    </BODY>
    </HTML>
    Note that VALUE="1" attributes in textfields.
    Both corresponds to first value.
    And what about second? Can I get it in place?
    Is that a feature of CGI.pm or I missed something?