[Gllug] Quick Perl question

Dave van Zijl dave at alchemyworx.com
Fri Jul 27 10:53:05 UTC 2001


If my memory servers me correctly, something like:

#!/usr/bin/perl
use CGI;

$fields = new CGI;

$firstname = $fields->param(firstname);
$surname = $fields->param(surname);

# If you aren't sure of the names of the parameters passed to your form, I
# think you can get them all by doing:

@fieldnames = $fields->param;
foreach(@fieldnames) {
    print "$_ = $fields->param($_)";
    }

Hope it works
Dave

> Just a quick question: could someone please tell me how to request 
> the strings from a form submitted as a post action="test.pl" 
> Ta v. much.
> Anthony



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list