<?php
$filename= $_FILES['userfile']['name'];
$temp= $_FILES['userfile']['tmp_name'];
$folder="photo/".$filename;
if(move_uploaded_file($temp,$folder))
{
echo"uploaded";
}
else
{
echo "not uploaded";
}
?>
<html>
<head>
</head>
<body>
<form method="post" enctype="multipart/form-data">
<input type="file" name="userfile" required>
<br><br>
<input type="submit" name="save">
</form>
</body>
</html>
0 Comments