beginr has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on (OT) getting Submit button value in CGI application

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

    WHAT HAPPENS WHEN YOU GIVE THE BUTTONS DIFFERENT NAMES?

    /J\

      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

Re: (OT) getting Submit button value in CGI application
by virtualsue (Vicar) on Sep 11, 2006 at 09:39 UTC
    Read the articles here first - CGI Tutorials.
    Then you must show us more code, if you want useful help.
Re: (OT) getting Submit button value in CGI application
by svenXY (Deacon) on Sep 11, 2006 at 09:25 UTC
    Hi,
    you did neither add any valuable information nor any example code.
    Using uppercase (often felt as screaming at people) doesn't make it better.

    Please read How (Not) To Ask A Question.
    Regards,
    svenXY