Home > Backend Development > PHP Tutorial > php 中怎么实现带有两个按钮的对话框

php 中怎么实现带有两个按钮的对话框

WBOY
Release: 2016-06-13 11:17:35
Original
1530 people have browsed it

php 中怎样实现带有两个按钮的对话框?
在查询数据库后,根据查询结果弹出一个对话框,来选择是否继续上传资料并覆盖原来的数据,确定和取消两个按钮?我现在只能实现一个按钮,请教


------解决方案--------------------
echo "<script>if(confirm('此次上传将覆盖原文件,确定上传文件?')){.....};</script>";
------解决方案--------------------
     <br />if($row)//$row是查询结果<br />{<br />echo "<script>confirm('此次上传将覆盖原文件,确定上传文件?');</script>";//只有一个确定按钮,怎样是想两个按钮呢?<br />……<br />……<br />}else{<br />…………<br />}
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template