Re: Counting the number of form fields returned with information

2002-04-18 Thread eric-sourceforge
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 = (

Re: Counting the number of form fields returned with information

2002-04-18 Thread eric-sourceforge
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. #! /

Counting the number of form fields returned with information

2002-04-17 Thread eric-sourceforge
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

Re: Using smtp

2002-04-17 Thread eric-sourceforge
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