一些代码后,php确认框

时间:2017-01-12 13:58:25

标签: php box confirm

<?PHP
$cFile = $_FILES["sourcefile"];
$client=$_POST["client"];
$folder=$_POST["folder"];

require_once "Classes/PHPExcel.php";
$excel = "accounts.xlsx";
$excelReader = PHPExcel_IOFactory::createReaderForFile($excel);
$excelObj = $excelReader->load($excel);
$ftpadress = $excelObj->getSheet(0);
$lastRow = $ftpadress->getHighestRow();

$x=1;
while($x<=$lastRow) {
if($ftpadress->getCell('A'.$x)->getValue()==$client){
$dmethod        =$ftpadress->getCell('B'.$x)->getValue();
$adress         =$ftpadress->getCell('C'.$x)->getValue();
$username       =$ftpadress->getCell('D'.$x)->getValue();
$pass           =$ftpadress->getCell('E'.$x)->getValue();
$port           =$ftpadress->getCell('F'.$x)->getValue();
}
$x++;
}
//confirm box Start
echo "CLIENT : $client";
echo "ADRESSS : $adress";
echo "USERNAME : $username";
echo "Are you sure?;
//confirm box End

---if result==no;{
---die;}
---else{
---echo "smart is the new sexy!";
---}

?>

我想将这些“echo”添加到确认框中。 如果单击确定,它将移至下一个代码。 如果单击取消,它将会死亡;

我搜索了但是每个人都提供了“onclick”确认框。我想在一些代码后显示确认按钮。

0 个答案:

没有答案