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

I've been looking for forms and perl. How can I retrieve values submitted in a form using Perl. I haven't been able to find one. It would be great if you guys have any tutorial on how request values from a form.

Replies are listed 'Best First'.
Re: Forms
by Molt (Chaplain) on Jun 03, 2003 at 14:29 UTC

    For a nice simple example read perldoc CGI. The synopsis section is pretty much what you want.

Re: Forms
by Ovid (Cardinal) on Jun 03, 2003 at 15:14 UTC
Re: Forms
by Juerd (Abbot) on Jun 03, 2003 at 15:31 UTC

    If you are using PLP, you can use the %get and %post hashes (which are combined in %fields, but IMO it's bad to mix the two).

    <form method=get> <input name=test> </form> <: if ($get{test} ne '') { print "Your input: $get{test}" } :>

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Re: Forms
by CountZero (Bishop) on Jun 03, 2003 at 15:23 UTC

    And of course CGI.pm.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: Forms
by nite_man (Deacon) on Jun 03, 2003 at 19:57 UTC
    Try to look at Re: Detecting a post via cgi. Maybe it will be useful for you :-))
          
    --------------------------------
    SV* sv_bless(SV* sv, HV* stash);