首页 > 学院 > 编程设计 > 正文

在无组件的情况下,如何上传图片?

2020-06-19 13:50:49
字体:
来源:转载
供稿:网友

<html>

<head>

<title>星河影动</title>

</head>

<body>

<tr>

<td height="69"><p align="center">撼雪喷云之无组件上传图片</font></td>

</tr>

<tr>

<td height="9">

<form enctype="multipart/form-data" action="upload.asp" method="post">

' 请求表单信息的编码类型必须使用enctype="multipart/form-data".

<div align="center"><center><p>请选择上传的图片: <br>

</font>  

<input name="picture" type="file" accept="image/*"><br>

' accept将对话框中出现的文件类型限制为图文件.

<input type="submit" value="现在上传"></p>

' 创建上传键.

</center></div>

</form>

</td>

</tr>

</table>

</center></div>

<p>  </p>

</body></html>

 

 

[1]

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表