Originally posted by tsinka
Ok,
The if code gets only executed if $myArray contains some data.
So unspecified means that either there's a valid option but no matching image or someone wants to cheat a little bit. Cheating can be prevented by adding some code that checks if the submitted value matches one of the three valid values at all.
If you already have that validation code then unspecified just means "create that image and add the filename to the array".
Thomas
Yes, if code only executes if $myArray contains some data.
Sorry, my mistake/my bad explanation... if the if code is executed, $myArray should only ever contain either e, n, or m and no other flags, so I guess the code will work fine and will display the unspecified.gif if a called image goes missing.
The user can only flag the subject as one of the 3 flags above so can't cheat it.