473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Check IMG

Hi all,
Some web sites (for example mySpace) had in the registration form an image
with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH
Aug 17 '06 #1
3 1535
Hi,

ldHH wrote:
Hi all,
Some web sites (for example mySpace) had in the registration form an image
with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH
It's fairly easy. Put all these images in a folder. The image name
should carry the letters/digits sequence (for example, if the image
displays abc123, the image name could be abc123.gif) Then use
server-side code to randomly select one image from this folder. Save the
image name in a session variable. When the user sends the request,
compare what he entered to the variable saved in the session.

Note that these images have a huge inconvenient: They make pages
unaccessible for blind people. Usually web browsers for "visually
impaired" people use the title of the alt attribute to read the image's
description out loud, but obviously you cannot use this in your rendered
HTML code. So you need to provide your users with an alternative solution.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 17 '06 #2
mc
visit here (http://www.codeproject.com/aspnet/CaptchaImage.asp) for more
info on how to dynamically create such images. It's not the most complex
of Captcha algorithms but it seems to keep the bots out on my site.

For an example of it in my application visit
http://www.mikecaddy.co.uk/reds/LogComment.aspx

Regards
mc

Laurent Bugnion wrote:
Hi,

ldHH wrote:
>Hi all,
Some web sites (for example mySpace) had in the registration form an
image with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH


It's fairly easy. Put all these images in a folder. The image name
should carry the letters/digits sequence (for example, if the image
displays abc123, the image name could be abc123.gif) Then use
server-side code to randomly select one image from this folder. Save the
image name in a session variable. When the user sends the request,
compare what he entered to the variable saved in the session.

Note that these images have a huge inconvenient: They make pages
unaccessible for blind people. Usually web browsers for "visually
impaired" people use the title of the alt attribute to read the image's
description out loud, but obviously you cannot use this in your rendered
HTML code. So you need to provide your users with an alternative solution.

HTH,
Laurent
Aug 18 '06 #3

Hi all,
Really thanks for your help

"mc" wrote:
visit here (http://www.codeproject.com/aspnet/CaptchaImage.asp) for more
info on how to dynamically create such images. It's not the most complex
of Captcha algorithms but it seems to keep the bots out on my site.

For an example of it in my application visit
http://www.mikecaddy.co.uk/reds/LogComment.aspx

Regards
mc

Laurent Bugnion wrote:
Hi,

ldHH wrote:
Hi all,
Some web sites (for example mySpace) had in the registration form an
image with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH

It's fairly easy. Put all these images in a folder. The image name
should carry the letters/digits sequence (for example, if the image
displays abc123, the image name could be abc123.gif) Then use
server-side code to randomly select one image from this folder. Save the
image name in a session variable. When the user sends the request,
compare what he entered to the variable saved in the session.

Note that these images have a huge inconvenient: They make pages
unaccessible for blind people. Usually web browsers for "visually
impaired" people use the title of the alt attribute to read the image's
description out loud, but obviously you cannot use this in your rendered
HTML code. So you need to provide your users with an alternative solution.

HTH,
Laurent
Aug 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Craig Bailey | last post by:
Someone please explain what alternate universe I fell into this afternoon when PHP started telling me that 2 doesn't equal 2. Not sure about you, but when I run this, it tells me 59001.31 doesn't...
2
by: Askari | last post by:
Hi, How do for do a "select()" on a CheckButton in a menu (make with add_checkbutton(....) )? I can modify title, state, etc but not the "check state". :-( Askari
2
by: Edward | last post by:
The following html / javascript code produces a simple form with check boxes. There is also a checkbox that 'checks all' form checkboxes hotmail style: <html> <head> <title></title> </head>...
7
by: Tony Johnson | last post by:
Can you make a check box very big? It seems like when you drag it bigger the little check is still the same size. Thank you, *** Sent via Developersdex http://www.developersdex.com ***...
2
by: Travis.Box | last post by:
I have an MS Access userform with 16 Check Boxes. Each of the checkboxes has a different option value, which coincides with the Check Box name (eg. cb01.OptionValue = 1). At the bottom of the...
1
by: scprosportsman | last post by:
Please help guys, i am trying to set up a database here at work and im fairly new to access in terms of writing functions and queries and stuff. I have 2 different places on my design that will...
2
by: Chris Davoli | last post by:
How do you enable a check box in the GridView. I selected Checkbox Field in the Columns of the GridView, and the check box shows up in the Grid view, but it is disabled. How do I enable it so I can...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
5
by: starke1120 | last post by:
Im creating a check in – check out database for RF guns. I have a table that contains models. ID (primary key) Model A table that contains Gun Details ID (primary key) Model_id...
1
by: ghjk | last post by:
my php page has 7 check boxes. I stored checked values to database and retrive as binary values. This is the result array Array ( => 0 => 1 => 0 => 1 => 0 => 0 => 1 ) 1 means checked....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.