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
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