Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Empty Fields

by CharlesClarkson (Curate)
on Oct 31, 2001 at 12:50 UTC ( #122304=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Empty Fields
in thread Empty Fields

It looks like you need to add next unless $value; to :

foreach $key (@ordnames) { $value = $FORM{$key}; next unless $value; # added this line # get rid of ^M and stuff $value =~ s/\x0d\x0a/ /g; $value =~ s/[\x0a\x0d]/ /g; unless ( $key eq "recipient" || $key eq "recipients" || $key eq "subject" || $key eq "redirect_to" || $key eq "validate" || $key eq "email_field" || $key eq "error_head" || $key eq "error_foot" ) { $outmail .= qq|$key:\t\t$value\n|; # add each key and a tab to datastring $outdata .= qq|$value\t|; } }

HTH,
Charles K. Clarkson


Comment on Re: Re: Re: Empty Fields
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Re: Re: Empty Fields
by Anonymous Monk on Oct 31, 2001 at 20:22 UTC
    Thanks Charles! Hopefully this will work :)
    -D

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://122304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2015-07-30 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls