After querying the database, according to the query results pop up a dialog box, to choose whether to continue to upload data and overwrite the original data, determine and cancel two buttons? I can only implement a button now, ask
Reply to discussion (solution)
To giveAdd a property for name
Background according to Isset ($_post[' submit_button_name ') can determine which button press
To giveAdd a property for name
Background according to Isset ($_post[' submit_button_name ') can determine which button press
What you said.Is it implemented in the form? My upload.php is a form, the action of the form goes to upinfo.php, in upinfo.php,
if ($row)//$row is the result of the query {echo ";//There is only one OK button, how do you want two buttons? ............} Else{.......}
...
Alert, of course, has only one button
Confirm has two buttons
echo "";
The landlord's meaning I do not see very clear, can be posted part of the code
if ($row)//$row is the result of the query {echo ";//There is only one OK button, how do you want two buttons? ............} Else{.......}
echo "";
Thank you very much, in fact, I also know that there is confirm such a dialog box, but is not flexible use, may be the root cause is the foundation is not strong, thank you very much