SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP form processing

    Hello. I'm learning web design for a hobby, and at the moment I'm trying to build my own website.

    For this site, I am trying to build a 'contact me' page, which includes a form where people can leave their details and a small message, which will be sent to my email inbox when they complete the form. I am fine with the XHTML and CSS of building the form. The PHP, however, has me stumped.

    Basically, what I want to do is have a page called example.com/contact which contains the form where the user inputs their details. I would like their name, email address and message to be required fields. If these are all validated, I would like it to move to a confirmation screen where they can quickly check the message and details, and hit a submit button. When they do this, I would like it to send the info to my email address.

    I have to make sure that the PHP is as secure as possible, so that the form or server won't be affected by spam or people putting code into any of the text inputting areas.

    I want to learn how to do this myself, rather than just copy some script and not understand it, so I was wondering if anyone knows of particularly good tutorials or tips which they can offer for building a good contact form with php. I'm finding the Sitepoint 'Build Your Own Database Driven Website' book uncharacteristically hard to grapple with compared to the one for XHTML and CSS.

  2. #2
    Use The Cloud
    Join Date
    Jan 2006
    Location
    Boise, ID
    Posts
    556
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made a post in this thread that may be helpful.
    Brad Hanson, Web Applications & Scalability Specialist
    ► Is your website outgrowing its current hosting solution?
    ► PM me for a FREE scalability consult!
    ► USA Based: Available by Phone, Skype, AIM, and E-mail.


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
  •