close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add Captcha refresh

Thread began 1/05/2012 11:15 am by bill3786 | Last modified 4/13/2012 4:33 pm by Jason Byrnes | 3545 views | 7 replies |

bill3786

Add Captcha refresh

What is the correct way to add a refresh button to the Captcha on the Register and Forgot Password pages generated by Security Assist?

Sign in to reply to this post

Jason ByrnesWebAssist

the code to show the captcha image will look something like:

php:
<img  src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" />




edit that, so that it has an id:

php:
<img id="capt1"  src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" />




then add a refresh image next to it with an onClik event to regenerate the captcha graphic:

php:
<img  src="refresh.png" height="18" onclick="document.getElementById('capt1').src+='&ref=1'" />
Sign in to reply to this post

bill3786

The captcha refresh now works fine on the registration and forgetpassword pages.

However while testing the forgetpassword page I found that the following message was returned "Your email address could not be found in our records. Please try again."

I tried a number of trial email addresses which are definitely in the users table but with the same error message.

The site is not yet live and only on a local testing server, is this the reason for this problem?

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the forgot password page please.

Sign in to reply to this post

bill3786

Forgot Password page attached.

Attached Files
forgotpassword.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you need to edit the forgot password server behavior and set the correct SMTP Server address and port for sending emails from your server, if you are not sure of the correct address to use, contact your host.

Sign in to reply to this post

evansg7124312885

Can you elaborate on the "onClick" behavior

Hello,

I keep screwing up the spelling of Wednsday and would like to add the refresh option to both Captcha features.

I understand everything to the point of:
"image next to it with an onClik event to regenerate"

I know where to find the OnClik behavior, but I have no idea what to write for the action, can you elaborate?

Sign in to reply to this post

Jason ByrnesWebAssist

see the example in post 2 of this thread:
showpost.php?p=116836&postcount=2


php:
<img  src="refresh.png" height="18" onclick="document.getElementById('capt1').src+='&ref=1'" />
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...