|
Posted by sunbum on 09/14/05 19:29
Thanks Sandman,
Could you glance at this and see if I'm going in the right direction?
<?php
<html>
<head><title>Cooler Log Graph</title></head>
<body>
<form action="coolerlinec.php" method="post">;
# Directory
$dir = "/inetpub/wwwroot/templogs/";
print "<select name='file'>";
$dir = opendir($dir);
while (false !== ($file = readdir($dir))){
if (in_array($file, array(".", ".."))) continue;
print "<option value='$file'>$file</option>";
}
print "</select>";
<input type="submit" value="Submit">;
</form>
</body>
</html>
?>
Thanks again!
Anyone else is more than welcome to chime in too! The main function is
from "Sandman" and works great, I am now just trying to incorporate it
into a form. Obviously I am greener than grass ;)
Mike
Navigation:
[Reply to this message]
|