Re: [PHP] Secure Mail Form using PHP

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 7:23 am, Martin E. Koss wrote: > So far I'm able to remove bcc, cc, to, etc but unable to remove \n & > \r. I dunno why you are having trouble losing \r and \n, since it's not tricky... But forget all that, and consider this: $Email = $_POST['Email']; $Email = str_repla

Re: [PHP] Secure Mail Form using PHP

2006-02-16 Thread Greg Schnippel
> I'm trying to make sure my email form cannot be used for spam or > injecting additional code and addresses in any way. > >// CHECK FOR SPAM ATTEMPTS AND REMOVE THEM > > I had a similar problem with my contact form and went down a similar path of trying to clean up the user-input with re

[PHP] Secure Mail Form using PHP

2006-02-16 Thread Martin E. Koss
This issue has probably been discussed more than I've been able to find in the archive, so I'm sorry if I'm going over old ground. I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. So far I'm able to remove bcc, cc, to, etc but

[PHP] Secure Mail Form using PHP

2006-02-16 Thread Martin E. Koss
This issue has probably been discussed more than I've been able to find in the archive, so I'm sorry if I'm going over old ground. I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. So far I'm able to remove bcc, cc, to, etc but