Hi,
I'm using the following simple script to include a text file according to the $id passed to it by the preceeding form field.
<?php include("annotate.php.$id"); ?>
But, if someone enters an incorrect $id, i.e. there is no such text file, I get a 'failed to include' parse error. Is there any way of having, instead, a 'file not found, try again' type message? Maybe by scanning the files in the directory?
I'm a complete beginner so please use simple terms if poss.
Thanks in advance, Andy.