another try...
| From: | Jas | Date: | Mon, 08 Apr 2002 23:15:30 +0000 |
| Subject: | another try... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-92145@lists.php.net to get a copy of this message | ||
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