SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,757
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Form that E-mails Me

    I am sure this is a pretty dumb question, but how do I make a Form where visitors to my site can e-mail me?

    I recall reading in a PHP book a year ago that if you create an HTML Form - and then do whatever - that you can help reduce or eliminate spam. (Not sure if this is true?!)

    Not sure where to begin?

    Thanks,


    Debbie

  2. #2
    SitePoint Addict peterb's Avatar
    Join Date
    Jun 2003
    Location
    Athens, Greece
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello DoubleDee,

    What you want to do is to create an outline of the info that you want the user to send you. Code that using html as a form and optionally css to be able to format it later. At the bottom of the form you want to add a routine for a captcha, a box with a code that users fill in to differentiate them from spam bots.

    http://www.google.com/search?source=...358l1.8.4l13l0

    Hope this helps.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    669
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might like to look at this article by White hat web design - they have a very good class for captcha image generation and code checking:
    http://www.white-hat-web-design.co.u...curity-images/

    Also you could consider a validation email being sent to the users email address - that way you can then pull their contact form data from the DB and send it to your own email. If they don't validate it (say within 7 days) then a cron could wipe it automatically (or you could send them a reminder to validate). Spammers don't tend to validate things sent to them by email so that should drastically filter any spam sent through your form should your captcha image be cracked.
    I'll do anything to avoid working on my own code

    Are you using: if (isset($_POST['submit'])) ?
    IE has a bug and does not always send the value.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •