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'> 

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

你可能感兴趣的:(PHP)