Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>FileStore - Upload Files</title>
- <link rel="stylesheet" href="./CSS/style.css" type="text/css" media="screen, projection" />
- </head>
- <body>
- <div id="wrapper">
- <header id="header">
- <div id="header-content">
- <strong><h1>FileStore</h1></strong> Upload multiple files at once!
- </div>
- <div class="login-info" >
- <form action="?op=login" method="POST" action="login.php" >
- Username: <input name="username" size="15">
- Password: <input type="password" name="password" size="8">
- <input type="submit" value="Login">
- </form>
- </div>
- </header><!-- #header-->
- <section id="middle" align="center">
- <div id="container">
- <br><br>
- <div id="content">
- <strong><h1>Upload files</h1></strong><br><br>
- <div id="upload-file" >
- <?php
- if (isset($_FILES['files'])) {
- echo "<div id='files_table'><table class='center'.><tr><td>";
- foreach($_FILES['files']['tmp_name'] as $key => $tmp_name){
- move_uploaded_file($tmp_name, "files/{$_FILES['files']['name'][$key]}");
- echo $_FILES['files']['name'][$key], " uploaded.", "<br>";
- }
- echo "</td></tr></table></div><br><br>";
- }
- ?>
- <form action="" method="post" enctype="multipart/form-data">
- <h1> Select files to upload:</h1>
- <br>
- <p>
- <input type="file" name ="files[]" multiple="multiple" min="1" />
- <input type="submit" value="Upload" />
- </p>
- <br>
- <h2> You can select multiple files for upload. </h2>
- </form>
- </div>
- </div><!-- #content-->
- </div><!-- #container-->
- <aside id="sideLeft">
- <div id="menu-x" align="center"><br>
- <strong>Menu</strong><br><br>
- <div class="menu">
- <ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="upload.php">Upload</a></li>
- <li><a href="files.php">Files</a></li>
- <li><a href="about.php">About</a></li>
- <li><a href="help.php">Help</a></li>
- <li><a href="#">Logout</a></li>
- </ul>
- <br style="clear:left"/>
- </div>
- </div>
- </aside><!-- #sideLeft -->
- </section><!-- #middle-->
- <footer id="footer">
- <strong>FileStore:</strong> A CMT 3315 Project by Brian Livori
- </footer><!-- #footer -->
- </div><!-- #wrapper -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement