Page 1 of 1
Captcha
Posted: Thu Feb 02, 2006 6:54 pm
by Haggerfly
Hello,
Im preety new to this and I have added a captcha to my form and I am not receiving emails anymore, If you could dirrect me to a good place to troubleshoot this that would be great!
heres the code im working with
Posted: Thu Feb 02, 2006 6:58 pm
by Haggerfly
Jcart | Please use Code: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Code: Select all
<?php
// At first we initialize our session again.
session_start();
// Then we get the Text entered by the user and
// the random generated text
$IMGVER_EnteredText = $HTTP_POST_VARS["txtCode"];
$IMGVER_RandomText = $HTTP_SESSION_VARS["IMGVER_RndText"];
// Now we check, if the two strings are the same
if ($IMGVER_EnteredText == $IMGVER_RandomText) {
echo "You Rule, Way to Go!";
/* ENTER YOUR MESSAGE ABOVE OR MAKE THIS FILE A FUNCTION
** AND USE RETURN INSTEAD! */
} else {
echo "You haven“t entered the correct code. Please try again!";
/* ENTER YOUR ERROR MESSAGE ABOVE OR MAKE THIS FILE A FUNCTION
** AND USE RETURN INSTEAD! */
}
// Now we are ready and can unset and destroy our session
session_unset();
session_destroy();
?>
Jcart | Please use Code: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Posted: Thu Feb 02, 2006 8:34 pm
by nickman013
Your in the wrong forum. Also use PHP code tags when posting in the forums.
I dont know what you mean though.
Posted: Thu Feb 02, 2006 8:52 pm
by John Cartwright
yea.. whats wrong? Is the captcha not giving the expected results? Also, you posting nothing to do with mail, so I'm unclear as to what the problem is.