in reply to Stop Form Hurling
I suppose you already have the necessary alphanumeric set of image files. Just use the @selected array to incorporate the images to your document, like this:@array = (0..9,a..z,A..Z); srand; foreach (1..5) { $rand = int(rand scalar(@array)); push (@selected, $rand); }
Then make a variable out of @selected to check it once the form has been submitted:for ($i; $i<5; $i++) { print "<img src='image_dir/$selected[$i].jpg' border=0>"; }
Pass it on to the cgi script that will do the checking and you're done.$check_var = "@selected";
I hope this helps as the only thing I've been doing around here is ask questions. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stop Form Hurling
by simonm (Vicar) on Nov 06, 2004 at 05:52 UTC | |
by emav (Pilgrim) on Nov 06, 2004 at 06:15 UTC | |
by simonm (Vicar) on Nov 06, 2004 at 06:30 UTC | |
by emav (Pilgrim) on Nov 06, 2004 at 07:18 UTC | |
by simonm (Vicar) on Nov 06, 2004 at 17:17 UTC | |
|