Hello Teresa,
Monday, August 13, 2001, 12:48:12 PM, you wrote:
TR> My computer has died so, I'm using my husband's which means that I
TR> have lost all my links. So, could someone please post the CGI.pm
TR> documentation link?
>>I believe what may be happening is the listbox/checkbox is returning an
>>array so $param{$i} for them is an array reference ... There is a discussing
>>in the doc for CGI about this ...
>>
>>
>>Hope this helps ...
>>
>>jwm
>>
>>PS ...
>>
>>foreach (keys %params)
>> {
>> print "error msg" if ($params{$_} !~ /^([\w\s\.\/-]+)$/i);
>> }
>>
>>I forget about "$_" ... it's free
>>
>>
>>-----Original Message-----
>>From: Teresa Raymond [mailto:[EMAIL PROTECTED]]
>>Sent: August 11, 2001 13:03
>>To: [EMAIL PROTECTED]
>>Subject: Multiple values and regex issue
>>
>>
>>I have the below regex which works except when I send multiple values
>>through a drop down list or through checkboxes. The test evaluates
>>true and prints the Error Msg every time multiple values are passed.
>>Any suggestions?
>>
>>foreach my $i (keys %params)
>>{
>>if ($params{$i} !~/^([\w\s\.\/-]+)$/i)
>> {
>>print "Error Msg";
>>}
>>}
>>
>>--
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
Here is the address you asked for:
http://stein.cshl.org/WWW/software/CGI/cgi_docs.html
--
Best regards,
K.L. Hayes
mailto:[EMAIL PROTECTED]
+=====================================================+
+ "Only two things are infinite, the universe and +
+ human stupidity, and I'm not sure about the former."+
+ -- Albert Einstien +
+=====================================================+
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]