PDA

View Full Version : Image verification/validation


bugman_2000
02-11-2007, 12:19 AM
Hi,

I'm trying to put an anti-bot verification image into a form. I've managed to get this php script working in laszlo:

http://www.php-mysql-tutorial.com/user-authentication/image-verification.php

but only to the extent that I can get a random number in a jpeg into my laszlo form. However, I'm a bit at a loss as to how to also get the value of the random number to laszlo. In the script here, the value is stored as a session variable. I would like to pass it to laszlo in a dataset, but I can't think how to do this without calling the script twice (I am currently calling it directly as the resource src), in which case the values won't match. Is there some way to pass the image through in a dataset?

Also, a related question. I've googled around and seen hints that md5 hashing is possible in Laszlo, but I haven't found the explicit documentation for that. Can somebody point me to where I can find that?

Thanks

Tony

senshi
02-11-2007, 01:31 AM
Also, a related question. I've googled around and seen hints that md5 hashing is possible in Laszlo, but I haven't found the explicit documentation for that. Can somebody point me to where I can find that?

I like the search-function (http://forum.openlaszlo.org/search.php?do=process&query=md5) in this forum.

Here's what you want. (http://forum.openlaszlo.org/showthread.php?t=2630)

bugman_2000
02-12-2007, 04:41 AM
Thank you for the response. I'll check that md5 function out.

Anybody have any suggestions on the first part of the question? I need to have something to hash before I can use the hash function...

T

bugman_2000
02-13-2007, 09:30 PM
It's not necessary, of course, for me to use the PHP script I mentioned. If anybody knows of another approach to including image verification in a form I'd be happy to go a different route. In case my wording is unclear, I mean that a sequence of numbers and letters is encoded in jpeg form, and the user has to type the sequence into the form to prove that he or she is a person. Any examples of this in Laszlo?

Searching in this forum (at least on any search string I could think of) didn't turn anything up.

T