<input type="file" name="file">
<button type="submit">上传</buttom>
</form>
处理上传的php
<php$File = $_FILES['file']; //取得上传数组
move_uploaded_file($File['tmp_name], "upload/" $_FILES['file']['name']); //移动上传后的临时文件到指定目录
当然, 实际运用的时候还要检测上传类型, 上传大小等, 具体建议百度一下 php上传文件
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)