How do I implement a dialog box with two buttons in PHP?

Source: Internet
Author: User
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

 
  
  • 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.