有个上传图片的按纽
图片 <input type="file" size="30" name="identy_pic" id="identy_pic">现需求是:先点击页面中的浏览,再选中本地的图片(可多选),确定时,图片就要出现在页面上
这怎么实现呀,thanks
图片 <input type="file" size="30" name="identy_pic" id="identy_pic">现需求是:先点击页面中的浏览,再选中本地的图片(可多选),确定时,图片就要出现在页面上
这怎么实现呀,thanks
<input type="file" name="file" />
<?php
if($_GET["upfile"]) {
echo "<img src='1.jpg' />";
}
?>
<input type="submit" value="submit" />
</form>
1.php$upfile = $_FILES["file"];
if(!empty($upfile["name"]) {
echo "<script>alert('OK!');location.href='1.html?upfile=".$upfile["name"]."';</script>";
}
哎~~这样给你写代码,不知道是在帮你还是在害你
图片 <input type="file" size="30" name="identy_pic" id="identy_pic">现需求是:先点击页面中的浏览,再选中本地的图片(可多选),确定时,图片就要出现在页面上
这怎么实现呀,thanks