in reply to Re: (OT) getting Submit button value in CGI application
in thread (OT) getting Submit button value in CGI application

print input({-type=>'submit',-value=>'Update'}) print "<input type=submit value='Submit'>"; i am using param('submit'). But i not getting any thing
  • Comment on Re^2: (OT) getting Submit button value in CGI application

Replies are listed 'Best First'.
Re^3: (OT) getting Submit button value in CGI application
by gellyfish (Monsignor) on Sep 11, 2006 at 09:39 UTC

    Precisely, because you haven't given it a name. Try adding a name attribute to it like:

    print input({-type=> "submit",-value=>"Update",-name=>"Foo"})

    /J\

Re^3: (OT) getting Submit button value in CGI application
by svenXY (Deacon) on Sep 11, 2006 at 09:39 UTC
    Hi,
    print input({-name='button1', -type=>'submit',-value=>'Update'})
    then use param(button1) to get the value
    Regards,
    svenXY
Re^3: (OT) getting Submit button value in CGI application
by davorg (Chancellor) on Sep 11, 2006 at 09:39 UTC

    Doesn't look like you're giving it a name. You can't get a CGI parameter's value unless you give it a name.

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

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg