You are here: Re: PHP to EMail BCC « All PHP « IT news, forums, messages
Re: PHP to EMail BCC

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация