Update fileupload1.php
This commit is contained in:
parent
2b637f9695
commit
835ae3fedf
|
@ -1,7 +1,9 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="shortcut icon" href="../Resources/hmbct.png" />
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div style="background-color:#c9c9c9;padding:15px;">
|
<div style="background-color:#c9c9c9;padding:15px;">
|
||||||
<button type="button" name="homeButton" onclick="location.href='../homepage.html';">Home Page</button>
|
<button type="button" name="homeButton" onclick="location.href='../homepage.html';">Home Page</button>
|
||||||
<button type="button" name="mainButton" onclick="location.href='fileupl.html';">Main Page</button>
|
<button type="button" name="mainButton" onclick="location.href='fileupl.html';">Main Page</button>
|
||||||
|
@ -9,9 +11,9 @@
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<form action="" method="post" enctype="multipart/form-data">
|
<form action="" method="post" enctype="multipart/form-data">
|
||||||
Select image ->
|
<br>
|
||||||
<input type="file" name="file" id="file">
|
<b>Select image : </b>
|
||||||
<hr>
|
<input type="file" name="file" id="file" style="border: solid;">
|
||||||
<input type="submit" value="Submit" name="submit">
|
<input type="submit" value="Submit" name="submit">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,6 +28,5 @@ if(isset($_POST["submit"])) {
|
||||||
echo "File uploaded /uploads/".$_FILES["file"]["name"];
|
echo "File uploaded /uploads/".$_FILES["file"]["name"];
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user