Then make a variable out of @selected to check it once the form has been submitted: ... Pass it on to the cgi script that will do the checking and you're done.
Unfortunately, this solution is not very secure. An automated script could easily figure out what to send back by looking at the image URLs, or could simply send a different value for check_var that matches their input.
Instead of trying to code this from scratch, take a look at the existing "Captcha" implementations.
In reply to Re^2: Stop Form Hurling
by simonm
in thread Stop Form Hurling
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |