Re: [PHP] simple scrip to stop email injection

2006-08-18 Thread Richard Lynch
On Thu, August 17, 2006 2:20 am, Ivo F.A.C. Fokkema wrote: if (preg_match(/\r\n/, array($fname, $sname, $email, $subject))){ die(Spammer!); preg_match(/[\r\n]/, ... You are absolutely correct. Sorry. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

Re: [PHP] simple scrip to stop email injection

2006-08-17 Thread Ivo F.A.C. Fokkema
On Wed, 16 Aug 2006 15:54:32 -0500, Richard Lynch wrote: On Wed, August 16, 2006 4:53 am, Ross wrote: Been having loads of problems with this and have solved it using the phpmailer. The only problem is I cannot get the class working on the remote host I am working on. I am back to using

[PHP] simple scrip to stop email injection

2006-08-16 Thread Ross
Been having loads of problems with this and have solved it using the phpmailer. The only problem is I cannot get the class working on the remote host I am working on. I am back to using mail() but need to drop in script that checks my fields $fname, $sname, $email, $subject, $message.

Re: [PHP] simple scrip to stop email injection

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 4:53 am, Ross wrote: Been having loads of problems with this and have solved it using the phpmailer. The only problem is I cannot get the class working on the remote host I am working on. I am back to using mail() but need to drop in script that checks my fields