我有這個腳本從http://lampload.com/component/option,com_jdownloads/Itemid,382/cid,69/task,view.download/ (我沒有使用數據庫)我可以上傳圖像很好,我可以查看文件,但我想刪除它們。 當我按下刪除按鈕,沒有任何反應從文件夾中顯示圖像並刪除圖像
http://www.jayg.co.uk/gallery6/upload_gallery.php
<?php
$dir = dirname(__FILENAME__)."/images/gallery" ;
$files1 = scandir($dir);
foreach($files1 as $file){
if(strlen($file) >=3){
$foil = strstr($file, 'jpg'); // As of PHP 5.3.0
$foil = $file;
$pos = strpos($file, 'css');
if ($foil==true){
echo '<input type="checkbox" name="filenames[]" value="'.$foil.'" />';
echo "<img width='130' height='38' src='images/gallery/$file' /><br/>"; // for live host
//echo "<img width='130' height='38' src='/ABOOK/SORTING/gallery-dynamic/images/gallery/ $file' /><br/>";
}
}
}?>
<input type="submit" name="mysubmit2" value="Delete">
</form>
什麼想法?
哪裏處理刪除按鈕的代碼點擊? – 2014-11-23 10:02:09