我从目录cv::vector<cv::Vec3f> circles
获取的图片很少。我必须从所有图像中删除一个图像,我想显示确认警报,如是或否。如果是,则获取图像的值并将其传递到下一页。 $files = glob("images/image/$til/$subtil/*.*");
这是我必须获取的变量并在下一页中发布
$detatil="delete.php?image=$image&til=$til&subtil=$subtil";
答案 0 :(得分:0)
您可以通过在函数中传递值来实现目标:
<?php
$subtil=$_GET['subtil1'];
$til=$_GET['til1'];
$files = glob("images/image/$til/$subtil/*.*");
$count=count($files);
for ($i=0; $i<$count; $i++)
{
echo "<div class='pitem entry item-w1 item-h1' style='padding: 15px;'>";
$image = $files[$i];
echo "<img src='".$image."' class='img-responsive' style='padding:20px;border:1px solid black;'>"."";
echo "<br>";
$detatil="delete.php?image=$image&til=$til&subtil=$subtil";
echo"<span style='float: center;padding-top: 10px;'><button type='submit' onclick=myFunction('$detail') name='submit' value='Send' class='btn btn-primary'>Delete</button></span>";
//echo $detatil;
echo "</div>";
?>
<script>
function myFunction(url) {
var r=confirm("Do you want to leave page!");
if (r)
{
//write redirection code
window.location = url;
}
else
{
//do nothing
} //document.getElementById("demo").innerHTML = txt;
}
</script>
<?php
}//for loop end
?>