<!DOCTYPE html><html><head> <title></title></head><body> <div class="header"> <H2>Login</H2> </div> <form method="post" action="https://..." enctype="multipart/form-data"> <?php include 'errors.php'; ?> <div class="input-group"> <input type="text" name="username" placeholder="Username..." value="<?php echo $username; ?>"> </div> <div class="input-group"> <input type="password" name="password_1" placeholder="Password..."> </div> </div> <div class="input-group"> <input type="file" name="image" placeholder="Image..." value="<?php echo $image; ?>"> // The File doesn't get echo in after submit and an error </div> <div class="input-group"> <button type="submit" name="login" class="btn">Login</button> </div> </form></body></html>该表格用于使用图像注册用户。提交后,我检查名称是否已全部准备好,并查找其他错误(如果有错误),我希望除密码外的所有内容仍在表单中。它适用于用户名,但不适用于文件(图像)。那么我该怎么做呢?
- 2 回答
- 0 关注
- 48 浏览
添加回答
举报
0/150
提交
取消