I appreciate it Curtis. Good info...
Craig
[EMAIL PROTECTED]
http://www.msbwebdesign.com
Pager
Numeric: 1-877-895-3558
Email pager: [EMAIL PROTECTED]
--------------------------------------------------------------
You will never find time for anything.
If you want time, you must make it.
Charles Buxton
----- Original Message -----
From: "Curtis Poe" <[EMAIL PROTECTED]>
To: "Craig S Monroe" <[EMAIL PROTECTED]>; "Bradshaw, Brian"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 3:58 PM
Subject: Re: I can't figure out what this reads
--- Craig S Monroe <[EMAIL PROTECTED]> wrote:
> o.k.
> cgi.pm allows you to pull values from your form and push them directly
into
> variables.
> For example:
>
> #! /usr/bin/perl -w
>
> use strict;
> use CGI qw(:standard);
Since you're instantiating a new CGI object, you don't need qw(:standard).
That imports the CGI
methods as functions. If you're using the OO interface, the import is
superfluous.
> my $query;
> my $name;
>
> # Create a new object
> $query = new CGI(<STDIN>);
That works, but it will only work for the POST method. If you find a need
to change from a POST
to a GET, this code will break. The following will work for either method:
my $query = CGI->new;
Also, I think this discussion would be better handled on the CGI beginners
list.
Cheers,
Curtis POe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]