<?php $file = "ueditorphpuploadimage**.png"; foreach (glob("$file") as $filename) { //echo "<img src="".$filename.""> "; echo "<input type='submit' name='update' value='$filename'>"; } ?>
<form name="input" action="" method="post"> 输入目标文件夹路径:<input type="text" name="dir"/> <input type="submit" value="提交" /> </form> <img src="ueditorphpuploadimage201411241416834279117261.png"> <input type='submit' name='update' value='ueditorphpuploadimage201411241416834279117261.png'><img src="ueditorphpuploadimage201411241416834287596721.png"> <input type='submit' name='update' value='ueditorphpuploadimage201411241416834287596721.png'><img src="ueditorphpuploadimage201411241416834294486130.png"> <input type='submit' name='update' value='ueditorphpuploadimage201411241416834294486130.png'>
这样感觉会给删除带来一个有利的条件