How to implement a dialog box with two buttons in php

Source: Internet
Author: User
In php, how does one implement a dialog box with two buttons? After querying the database, a dialog box pops up based on the query results to select whether to continue uploading data and overwrite the original data. OK and Cancel buttons? I can only implement one button now. could you please refer to ------ solution ------------------ echo & nbsp; & lt; script & gt; if (how to implement a dialog box with two buttons in confir php?
After querying the database, a dialog box pops up based on the query results to select whether to continue uploading data and overwrite the original data. OK and Cancel buttons? I can only implement one button now.


------ Solution --------------------
Echo "script" if (confirm ('The Upload will overwrite the original file. Are you sure you want to upload the file? ') {...}; Script ";
------ Solution --------------------

If ($ row) // $ row is the query result
{
Echo "script confirm ('The Upload will overwrite the original file. Are you sure you want to upload the file? '); Script "; // There is only one OK button. how do I think of two buttons?
......
......
} Else {
............
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.