This is for you to just get started with the basics.
<?php
if( isset($_FILES["file"]) and $_FILES["file"]["tmp_name"] != ""){
/* Do your validation here
Reference URL
http://www.w3schools.com/php/php_file_upload.asp
*/
if($move_file){
$status = "File Uploaded Successfully";
} else {
$status = "Incorrect file format. Please try again.";
}
}
?>
<form method="post" role="form" method="post" enctype="multipart/form-data">
<div class="form-group">
<input type="file" name="file" id="file" size="75">
<label for="file">PHP Code here?</label>
</div>
<button type="submit" name="Import" value="Import">Upload</button>
</form>