retrieving captcha image from server using ajax

12 views
Skip to first unread message

suresh

unread,
Jul 23, 2008, 7:19:34 AM7/23/08
to google-ajax
hi
actually i have doubt in php.
in registration screen i keep one php captcha image(generated in php
using gd library)
but i want to retrieve another captcha image(because wheather it is
not readable).
that's why i want to retrieve another image with out refreshin page or
browser.
how can we retrieve captcha image using ajax and php.
please help me

Anshul Kalantri

unread,
Jul 25, 2008, 7:01:44 AM7/25/08
to googl...@googlegroups.com
Hi Suresh,

     You can simply refresh your image pointer. Through Ajax you need to provide the image pointer on click of some button where you can change only the captcha image without refreshing a page.
--
Anshul Kalantri

suresh tumati

unread,
Jul 25, 2008, 9:00:11 AM7/25/08
to googl...@googlegroups.com
hi this is suresh
i understand.but i have doubts.this is code
<table><tr>.
<td><img src="generateinage.php"></td></tr>
<a href="" onclick="somefunction()">Click here for new image</a>
this is code when initial page loading.
after click the link button what happens.how can i reload new image.

 

Anshul Kalantri

unread,
Jul 25, 2008, 10:28:53 AM7/25/08
to googl...@googlegroups.com
Hi Suresh,

      You have to take image names in an array if they are fix and randomly select them while refreshing the image script.
--
Anshul Kalantri
Reply all
Reply to author
Forward
0 new messages