php插入htm htm插入php的变量

<?php 
$file = "ueditor\php\upload\image\*\*.png";
foreach (glob("$file") as $filename) 
{
//echo "<img src=\"".$filename."\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
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="ueditor\php\upload\image\20141124\1416834279117261.png">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='update' value='ueditor\php\upload\image\20141124\1416834279117261.png'><img src="ueditor\php\upload\image\20141124\1416834287596721.png">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='update' value='ueditor\php\upload\image\20141124\1416834287596721.png'><img src="ueditor\php\upload\image\20141124\1416834294486130.png">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='update' value='ueditor\php\upload\image\20141124\1416834294486130.png'> 

这样感觉会给删除带来一个有利的条件

posted @ 2014-11-24 22:01  fleam  阅读(288)  评论(0编辑  收藏  举报