Captcha

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Haggerfly
Forum Newbie
Posts: 3
Joined: Thu Dec 08, 2005 4:34 pm
Location: Vancouver

Captcha

Post 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!
Haggerfly
Forum Newbie
Posts: 3
Joined: Thu Dec 08, 2005 4:34 pm
Location: Vancouver

heres the code im working with

Post by Haggerfly »

Jcart | Please use

Code: Select all

and

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

and

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]
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

Your in the wrong forum. Also use PHP code tags when posting in the forums.

I dont know what you mean though.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
Post Reply