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 {
............
}