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

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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。