Files
unisa_tsw_2014_2015/php7.php

51 lines
602 B
PHP

<?php
require_once ('functions.php');
include('header.html');
///////////////////////////
echo<<<_css
<style>
select {
width:100px;
}
</style>
_css;
echo "\n";
///////////////////////////
if (count($_FILES)==0){
echo "<form action=\"",$_SERVER['PHP_SELF'],"\" method=\"POST\" enctype=\"multipart/form-data\" > ";
echo "<input type=\"file\" name=\"gino\" >";
echo "<input type=\"submit\">";
echo "</form>";
}else {
$file = $_FILES['gino']['name'];
move_uploaded_file($_FILES['gino']['tmp_name'], $_SERVER["DOCUMENT_ROOT"]."uploaded/$file");
}
include ('footer.html');
?>