I am creating a folder dynamically, and I want to show the thumbnail of the folder as well.
Here is my index.php:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div id="pictures">
<form id="pic_form" method="post" action="pictures.php">
<table align="center" width="500" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="50px" align="center"/>
<td width="100px" align="center">Folder Name::
<td>
<td width="50px" align="center"/>
<td width="100px" align="center">
<input type="text" id="foldername" name="foldername">
<td>
<td width="50px" align="center"/>
<td width="100px" align="center">
<input type="submit" name="submit" value="Create">
<td>
<td width="50px" align="center"/>
</tr>
</table>
</form>
</div>
</body>
</html>
Now here is my pictures.php:
<?php
$foldername=$_POST['foldername'];
mkdir("album/$foldername");
//now what to do to generate thumbnail of the folder in the body segment;
//my concept ends here;
?>
<html>
<head>
</head>
<body>
</body>
</html>
Get a folder icon from somewhere and use an
<img>element to display it. Result looks like this: