Announcement

Collapse
No announcement yet.

PHP form, with captcha

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP form, with captcha

    Anyone know how to make these?

    Want to help?
    members/ride | the/website
    180 hp/145 ft-lb

    #2
    hmm, are you asking how to make a PHP form? or asking how to add Captcha to a form that you already made?

    in the first case, just make the form ACTION="phpscript.php" and METHOD="post". Each element in the form, make sure you give it an ID="firstname" for example. at this point, the CAPTCHA is just "included" as an image at the bottom of the page.

    in the phpscript.php (that the form POSTed data to) you can then retreive each element's contents by referring to $_POST['firstname'] and that will return whatever was POSTed from the "firstname" text box. once you retrieve each of these values, you can do your processing and/or mail submission or whatever. this is where you will process the validity of the user's input against the CAPTCHA, and either proceed or provide an error message.

    a Captcha is an idea, that can be implemented in any number of ways. you can source this "plugin" from just about anywhere, but heres a head start: http://www.captcha.net/captchas/ their first link provides a very nice explanation of implementation.
    Last edited by cp[mike]; 11-05-2009, 10:42 PM.


    - 1993 Accord LX - White sedan (sold)
    - 1993 Accord EX - White sedan (wrecked)
    - 1991 Accord EX - White sedan (sold)
    - 1990 Accord EX - Grey sedan (sold)
    - 1993 Accord EX - White sedan (sold)
    - 1992 Accord EX - White coupe (sold)
    - 1993 Accord EX - Grey coupe (stolen)
    - 1993 Accord SE - Gold coupe (sold)
    Current cars:
    - 2005 Subaru Legacy GT Wagon - Daily driver
    - 2004 Chevrolet Express AWD - Camper conversion

    Comment

    Working...
    X