473,322 Members | 1,188 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,322 software developers and data experts.

Confirmation

Can someone point me to some existing code that has the user click on a
link in an email that brings him to a page that presents some
letters/numbers for him to type in in order to validate an account?

BTW, what purpose do those letters serve?

Shelly

Dec 26 '05 #1
6 1431
Answer to what the letters do: It is to stop bots, spam bots, macros,
anything automated really from making account to spam or whatever.

I doubt there is an existing script as it is only useful if you are
validating something and most code uses a different sytle of system for
certain things. But use php GD and i would probably md5 the value and
put it in a $_GET value.

Dec 26 '05 #2
Good thought about the bots. Thanks.

As for the rest, what do you mean by GD?

I suppose it would go something like this:

Send an email to them bringing them to the validation page.

Put in a random sequence of letters and numbers.

When they type it, compare the two.

Why do I need to md5 it and where would it go?

Shelly

Dec 26 '05 #3
The reason for using those letters for confirmation is so that only a
human can submit the form. If you use plain text, an automated program
could read the string and input it on its own. So, to avoid this, you
turn the randomized string of letters/numbers into an image using GD
(with GD, you can overlay text into an image. You create an image on
the fly to your desired dimensions and load that image on the screen.
You need to keep a copy of the string you used to create the image for
comparison. You can either keep it in a database, or in a $_GET value,
which is where the MD5 comes in - to help encrypt it. I'd suggest the
database route, personally, but that involves a more in-depth program,
so be up for it if you do that (tie it together with the session id for
example). When the user types in the random string form the image,
then compare it to the stored value (from database or your $_GET value).

Dec 27 '05 #4
You would use the function

imagettftext()

to get your text onto the image, as an example. You can find the
details on how to use it (syntax, examples) by going to the PHP manual:

http://www.php.net/manual/en/function.imagettftext.php

Dec 27 '05 #5
Ah, I always wondered what "captcha" was - now I know, even though I
always did - I just never knew what it was called.

Dec 27 '05 #6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shelly wrote:
Good thought about the bots. Thanks.
Have a look at http://www.captcha.net/ , they got a lot of resources about
CAPTCHAs, how's ans why's.
As for the rest, what do you mean by GD?


GD stands for the Boutelle's Graphical Library. The library used by PHP in
its image manipulation functions. http://php.net/image

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

El hombre nunca es demasiado viejo para aprender.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDsHGP3jcQ2mg3Pc8RAngYAJwICA1eM+cIo/RsoAE3W6BbiVg9NwCcCl8g
pkSgRRk7kckbAFn++mLg19E=
=8bQo
-----END PGP SIGNATURE-----
Dec 27 '05 #7

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

Similar topics

3
by: Dennis Allen | last post by:
Hi. On my online ordering form I use browser cookies to keep track of user items. My confirmation page reads: "If any of this information is incorrect, please go back to the order form and...
13
by: Manfred Braun | last post by:
Hi All, I am trying to understand the blocking method socket.Send(). The call blocks as expected, but does this mean, it returnes after the underlying TCP layer got a confirmation, that the send...
6
by: Dotnet Guy | last post by:
I want to add a confirmation dialog box before I delete the records in my form. I have a piece of javascript code in html that checks for confirmation. But the main issue lies in calling this...
6
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
1
by: Grey | last post by:
I can used the RegisterOnSubmitStatement to set the confirmation alert box, i.e. RegisterOnSubmitStatement("submit", "return confirm('Delete Page?');"). But this confirmation box prompted out from...
4
by: DrData | last post by:
I'm working on an ASP.Net application written in C#. On one page, there are several datagrid controls used to display, edit and delete detail records relating to the master record also displayed on...
2
by: steggun | last post by:
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick...
2
by: bienwell | last post by:
Hi all, I still have a problem when using Confirmation box in ASP.NET program. I need to get the value return of YES or NO from confirmation box in Sub function of VB program to do some tasks....
0
by: bay_dar | last post by:
I have an ASP.NET application with vb that I would like to use a confirmation box with, but only if certain conditions are met. In my case I would only want this msgbox to show up if a user entered...
2
by: bay_dar | last post by:
Hi, I have an internal ASP.NET application that I'm are using to send e-mails out based on a single milepost or milepost range entered. I'm trying to do two things when a user clicks on the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.