PHP development...LOGIN

PHP development image upload HTML page

Since we are uploading images, we must have an HTML page for selecting files to upload.

The code is very simple, look at the code below

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片上传</title>
</head>
<body>
<form id="form1" name="upload" enctype="multipart/form-data" method="post" action="upload.php">
    <input type="hidden" name="max_file_size " />
    <input type="file" name="file" />
    <input type="submit" name="submit" value="上传" />
</form>
</body>
</html>

The above code is just a It is a very simple file upload page without any styles. If necessary, you can make a more beautiful style for the page

Now that our front-end page is ready, the next step is to add it to the PHP page How to display files when processing files


Next Section
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>图片上传</title> </head> <body> <form id="form1" name="upload" enctype="multipart/form-data" method="post" action="upload.php"> <input type="hidden" name="max_file_size " /> <input type="file" name="file" /> <input type="submit" name="submit" value="上传" /> </form> </body> </html>
submitReset Code
ChapterCourseware