icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Implementing Recaptcha

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old March 21st, 2008, 11:57 AM   #1 (permalink)
Registered User
Comfy Contributor
 
Joined in Feb 2006
Lives in Ohio
Hosted on SH93
119 posts
Gave thanks: 4
Thanked 0 times
Implementing Recaptcha

This morning I decided to code a guestbook script. I decided it would be best to use a Captcha. I found recaptcha The Official CAPTCHA Site. I have the php version working. The only problem is that whenever a person messes up, it takes them to the php submit document, with an error at the top. I would like if possible to return to the form page so they can try again. My guestbook is at BrennanU.com | Guestbook. The tutorial I used for the guestbook is at Write a Guestbook!

Thanks,
Brennan
__________________
BrennanU is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 26th, 2008, 10:39 AM   #2 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,220 posts
Gave thanks: 3
Thanked 22 times
Ok here we go:

On this script: gbookin.php you've got a line about:
Quote:
The reCAPTCHA wasn't entered correctly. Go back and try it again.
You'll need to replace that with some php:
Code:
<?
header("location: post.php");
?>
Make sure that there is no other output (html tags, body tags) before this header redirect, as you cannot modify the headers after other data's been sent.

if you post the code for gbookin.php I'll take a jab at it for you.
__________________

Surmunity Special-Free Photos To Season Your Site/Blog, Code: fallatsurpass
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 26th, 2008, 10:43 AM   #3 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,055 posts
Gave thanks: 48
Thanked 129 times
I could so plug a guestbook product we're beta launching ... yesterday. I won't though... It has ads and stuff.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On