How to use server side verification for captchas

M

Mike Mueller

A good way to check to see if you have been compromised is by googling or
yahooing your email address
 
P

Paul C

Ok
What you have created so far is a form which checks a security code before
you can submit the form for the form to be sent anywhere some script is
needed to process the the form and send it to your email the code at the top
of your page checks to see if the code has been entered correctly. if it has
then you can priceed to send the form to email
Where it says "// Insert you code for processing the form here, e.g
emailing the submission, entering it into a database." near the top of the
page is where you add the processing code

http://www.tele-pro.co.uk/scripts/contact_form/
Use this form generator to write the processing script with your email
address and the field names of your form. make sure the case and spelling
are exactly the same make sure the php is selected then click finnish two
boxes of code will be generated, ignore the form script, cut and paste the
processing script code into the script where it says below remember that
someproviders require you to put php script into a folder called a cgi-bin
check with them
Paul M

If the code is correct then this script executes
if( isset($_POST['submit'])) {
if( $_SESSION['security_code'] == $_POST['security_code'] &&
!empty($_SESSION['security_code'] ) ) {

// Insert you code for processing the form here, e.g emailing the
submission, entering it into a database.
place the script to send the email here

echo 'Thank you. Your message said "'.$_POST['message'].'"';
unset($_SESSION['security_code']);



If the code is not correct then the above script is egnored and this error
message is executed
} else {
// Insert your code for showing an error message here
echo 'Sorry, you have provided an invalid security code';


http://www.tele-pro.co.uk/scripts/contact_form/
 
G

Guest

thank you very much Paul. I'll give it a go a bit later, lots of
other business right now. I'll report back. Thanks again pal.
--
Ciao,

**:::::>>:§«´`³¤³´`*:»§:<<::::*
.·°~ §LëAzZÿ WëA§ëL ~°·.
**:::::>>:§«´`³¤³´`*:»§:<<::::*

WrOnG NuMbEr RoCoCcO, yOu .·°~ §LëAzZÿ WëA§ëL ~°·.

WSHE -- She's Only Rock & Roll !
 
G

Guest

Paul, is this what it's supposed to look like?
--
Ciao,

**:::::>>:§«´`³¤³´`*:»§:<<::::*
.·°~ §LëAzZÿ WëA§ëL ~°·.
**:::::>>:§«´`³¤³´`*:»§:<<::::*

WrOnG NuMbEr RoCoCcO, yOu .·°~ §LëAzZÿ WëA§ëL ~°·.

WSHE -- She's Only Rock & Roll !
 
G

Guest

not's not working. I get the web page can not be found.
--
Ciao,

**:::::>>:§«´`³¤³´`*:»§:<<::::*
.·°~ §LëAzZÿ WëA§ëL ~°·.
**:::::>>:§«´`³¤³´`*:»§:<<::::*

WrOnG NuMbEr RoCoCcO, yOu .·°~ §LëAzZÿ WëA§ëL ~°·.

WSHE -- She's Only Rock & Roll !
 
P

Paul C

Hi
If you are sure that the path is correct then you might have to put the
processing script into the cgi-bin to make it work you will have to alter
the form post to to something like cgi-bin/contact.php
You will have to check with your provider about where to put php script but
if you can see this folder then try it and see.
Paul M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top