Ok I know you guys are tired of hearing from me on here but I tried to do it a different way and now I am getting a parse error on line 6... here is the code, <?php $dir_name = "/path/to/images/directory/"; $dir = opendir($dir_name); while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name !="..")) } // this is line 6, can I not put a if statement here? $file_list = "<p><FORM METHOD=\"post\" ACTION=\"index_done.php3\" NAME=\"$file_name\"><SELECT NAME=\"files\"> <OPTION VALUE=\"$file_name\" NAME=\"$file_name\">$file_name</OPTION> </SELECT><br><br><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"select\"></FORM></p>"; closedir($dir); ?> Thanks in advance, Jas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php