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

WHAT HAPPENS WHEN YOU GIVE THE BUTTONS DIFFERENT NAMES?

/J\

  • Comment on Re: (OT) getting Submit button value in CGI application

Replies are listed 'Best First'.
Re^2: (OT) getting Submit button value in CGI application
by beginr (Novice) on Sep 11, 2006 at 09:35 UTC
    print input({-type=>'submit',-value=>'Update'}) print "<input type=submit value='Submit'>"; i am using param('submit'). But i not getting any thing

      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\

      Hi,
      print input({-name='button1', -type=>'submit',-value=>'Update'})
      then use param(button1) to get the value
      Regards,
      svenXY

      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