Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cwesty

macrumors member
Original poster
Oct 22, 2005
50
0
Hi Everyone.

I'm looking for anyone who has some decent code/can reccomend a site that provides GOOD php code.

My issue is that my current form has been used by spammers to send email to s**t loads of people. I therefore need the php to prevent this sort of thing from re-occuring.

Any suggestions (instead of the old-fashioned mailto) :)

Cheers
 
You could use the mail() function in PHP to send the form to Postfix (or Sendmail) which gives you a bit more control over who it can go to, but you'll need the Mail server to be set up on the Web server (or accessible to it).

This thread had a similar question, with a bit of code included in the answers
 
I have a custom php/mysql script for a contact form. shoot me off a PM or email and I can help you with it.
 
Yeah, I've got one too that I wrote that prevents spammers from hijacking the email field (this one is tried and true, no one has gotten through it). Let me know if you want it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.