If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
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.
Comment