<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
 
<html>
 
<head>
 
    <title>.:: file upload by settings ::.</title>
 
    <link rel="stylesheet" type="text/css" href="style.css" />
 
</head>
 
<body>
 
    <form enctype="multipart/form-data" method="post">
 
    <table align="center" width="500">
 
        <tr><td align="center" class="hf">.:: file upload by settings ::.</td></tr>
 
        <tr><td align="left" class="formUp">
 
        <ul>
 
        <li><b>maximum size:</b> 100 kb</li>
 
        <li><b>extensions admitted:</b> .gif .jpg .jpeg .png</li>
 
        </ul>
 
             <input type="file" name="upload" />
 
             <input type="submit" name="send" value="Upload" class="bottone"/>
 
        <ul>
 
        </ul>
 
        </td></tr>
 
        <tr><td align="center" class="hf">© <a href="mailto:[email protected]">Antonello Mangone</a></td></tr>
 
    </table>
 
    </form>
 
    <?php
 
        if ($_POST["send"] == "Upload") {
 
                require_once("classFileUploader.php");
 
                $extensions = array("image/gif", "image/jpg", "image/jpeg", "image/png");
 
                $upload = new fileUploader("images/","100000",$extensions,$_FILES['upload']);
 
                print $upload->result;
 
        }
 
    ?>
 
</body>
 
</html>
 
 |