|
Posted by Tha RagMan on 09/12/07 00:00
On Tue, 11 Sep 2007 15:20:06 -0700, ZeldorBlat <zeldorblat@gmail.com>
wrote:
>I'm not sure why they use addslashes() here:
>
>@$Name = addslashes($_POST['Name']);
>@$Email = addslashes($_POST['Email']);
>@$Comments = addslashes($_POST['Comments']);
ZeldorBlat;
Thanks so much once again for your information and help.
The little program I use to create these scripts also give the option
to send the parsed data to a database so this may be the reasoning
behind the addslashes() here: being included if that is in fact why
they might be placed within the script in the first place.
I took your advice and made the change from
@$Email = addslashes($_POST['Email']); to your suggestion of
@$Email = str_replace(array("\r", "\n"), ' ', $_POST['Email']);
I then ran a little test to ensure that all worked as it should and it
did including the Bcc.
I am much in your debt for all the advice and help you have offered. I
sincerely thank you for your assistance.
Tha RagMan
Navigation:
[Reply to this message]
|