I need a GOOD php contact form

Discussion in 'Web Design and Development' started by cwesty, Aug 1, 2006.

  1. cwesty macrumors member

    Oct 22, 2005
    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) :)

  2. frankblundt macrumors 65816


    Sep 19, 2005
    South of the border
    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
  3. JGruber macrumors 6502

    Feb 13, 2006
    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.
  4. Stampyhead macrumors 68020


    Sep 3, 2004
    London, UK
    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.

Share This Page