Posted by David Smithz on 01/31/07 11:30
"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:1gn0s21s0iojakntf673jl6cf7e0ubbijb@4ax.com...
>thanks Geoff,
Yes using a lookup array and using it before preparing the email to send is
a much better approach!
I added the following
$lookup[$key]== "" ? $body.= $key : $body.= $lookup[$key] ;
that way if a variable was missed out I would still show in the email (which
is what I want).
On a slightly related subject I thought I would mention the following.
I want to prevent Spammers abusing my form to email. Not sure if this
happens as there are probably easier ways of doing SPAM, but as my form has
a free text field for comments, and the person filling the form enters their
email address and are emailed a copy of what they entered, is it not
possible for a spammer to abuse this.
What checks would you put in place to try and prevent this or is it too much
hassle for Spammers to do this.
Thanks
[Back to original message]
|