On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote:
> What's the simplest way to make sure that all 10 fields have been
> selected? I was hoping that...
A slightly shorter, more elegant solution:
#! /usr/bin/perl -w
use CGI qw(:standard);
use vars qw(%form_fields @missing);
%form_fields = (
On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote:
> What's the simplest way to make sure that all 10 fields have been
> selected?
This seems pretty straight-forward: param() returns a list of all form
elements - even the form elements without values. To check that each field
contains a value.
#! /
Hello, All:
What's the simplest way to make sure that all 10 fields have been
selected? I was hoping that...
display_error_message() if param() < 10;
would work, but it doesn't seem to work correctly.
--
Eric P.
Los Gatos, CA
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
On Wed, 17 Apr 2002, Bill Lyles wrote:
> How can I change this to smtp?
Bill:
Try using Mail::Mailer:
#!/usr/bin/perl -w
use Mail::Mailer;
my $To = $ARGV[0];
my $mailer = Mail::Mailer->new('smtp', 'your.smtp.host');
$mailer->open({
From => "[EMAIL PROTECTED]",
T