I was wondering if it will b possible to Create a HTML upload form and it will be purely HTML without calling any other PHP language to validate it. for example, Normally to create a file upload form is this way. Create an Upload-File Form
Look at the following HTML form for uploading files:
<html>
<body>
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>
While the PHP script will do the rest..
Create The Upload Script
The "upload_file.php" file contains the code for uploading a file: And it will look lyk dis
<?php
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br>";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br>";
echo "Type: " . $_FILES["file"]["type"] . "<br>";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
?>
but i was wondering if it can be possible not to use a PHP script but only an HTML script for example
<html>
<body>
<form action="upload_file.html" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>
While maybe another html script will do the rest..
I hope u guys can understand my question and give me a reply, Thanks