views:

366

answers:

4

hi friends,

I am developing a website with php, i'm also using javascript in it.

I have to refresh captcha in my website with a refresh button when a captcha is unreadable to a user.

how can i do this. please share any idea or codes to me

Thanks

A: 

Given that you have an implementation of Captcha on your website. An approach suitable for your needs is an Ajax request. Ajax (XMLHTTPRequest) Tutorial

If you do not want to hard-code everything and have the work already done for you, look at reCAPTCHA or any other Captcha providing company. Although, not entirely sure if they offer a non-refreshing captcha page.

I have no experience in using it, besides when editing posts too many times, StackOverflow will redirect me to the "Human Verification" page.

Anthony Forloney
is there any method without refreshing the page????
tibin mathew
You don't want to refresh the page? You might need to perform an AJAX request for that.
Anthony Forloney
+1  A: 

Why are you hand-rolling this out yourself? Did you try Recaptcha? http://recaptcha.net/whyrecaptcha.html

Ryan Fernandes
+1  A: 

You can use the ReCaptcha .

Otherwise it depends on the way you have implemented it .. Ajax seems like the way to go ..

Gaby
+1  A: 

Yes, the ReCaptcha is the perfect, and safe solution to go for, just register there and implement that on your site, it should not be that difficult :)

Sarfraz