agreed, i would strongly discourage you from doing what your proposing ... better approach is to simply count the number of files you have into $count, dynamically dimemsion an array[$count], then take the index number the user provides and index into the array and off you go. can do much better bounds checking this way ... plus, your script will never be sensitive to the number of files in the folder.

[ 07. November 2002, 19:28: Message edited by: Shawn ]