keith-t has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to post (or get) infomation that has been submitted on a HTML form, but am missing the critical line of code that does this. Any suggestions? Thanks, Noobster

Replies are listed 'Best First'.
Re: Post or Get?
by larryp (Deacon) on Dec 05, 2004 at 19:38 UTC

    It's difficult to tell what issues you're having without seeing the code. Please post at least some of the code so that we have a starting point.

    That being said, be sure to check out the following:

    Those resources are invaluable and can help you solve a great number of problems on your own.

    In addition, be sure to take a look at the CGI.pm documentation. It's really quite good with and includes many examples. You can do this by typing 'perldoc CGI.pm', without the single quotes, at the command prompt.

    HTH,

    /Larry

Re: Post or Get?
by tilly (Archbishop) on Dec 05, 2004 at 21:12 UTC
    The following short CGI script should (barring typos) echo back the data that you submit to it. Save it somewhere, make it executable so it runs, write an HTML form that submits to this script, and see what you get.
    #! /usr/bin/perl use strict; use CGI qw(header param); print header(type => "text/plain"); foreach my $param (param()) { print "$param:\n"; foreach my $value (param($param)) { print " $value:\n"; } }
Re: Post or Get?
by CountZero (Bishop) on Dec 05, 2004 at 18:52 UTC
    Some code you have written would help us to find the "missing critical line of code".

    CountZero

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