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!
Captcha
Moderator: General Moderators
heres the code im working with
Jcart | Please use
Jcart | Please use
Code: Select all
andCode: 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
andCode: 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]- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: