Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6005781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:26:46+00:00 2026-05-23T01:26:46+00:00

I just wanna ask how can I make a form with two buttons that

  • 0

I just wanna ask how can I make a form with two buttons that do different functions? Like for example: I have this table with checkboxes and when a checkbox was checked and a certain button was clicked, the button will perform its assigned task.

Button1 can add, button2 can delete.

Can you help me again, please? I’m kind of new at this and I really want to know. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:26:46+00:00Added an answer on May 23, 2026 at 1:26 am

    This is more of a JavaScript question than PHP.

    You’ll need to add an onclick to your buttons:

    <input type="button" onclick="functionA();" value="button a" />
    <input type="button" onclick="functionB();" value="button b" />
    

    Then create these functions in JavaScript:

    function functionA()
    {
        // do stuff
        alert("add");
    }
    
    function functionB()
    {
        // do stuff
        alert("delete");
    }
    

    Here’s a basic example of where you can stick your JavaScript etc:

    <!DOCTYPE html>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <title>Example</title>
    
            <script type="text/javascript">
                function functionA()
                {
                     // do stuff
                     alert("add");
                }
    
                function functionB()
                {
                     // do stuff
                     alert("delete");
                }
            </script>
        </head>
    
        <body>
            <input type="button" onclick="functionA();" value="button a" />
            <input type="button" onclick="functionB();" value="button b" />
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wanna ask this question. Can I use detailTextLabel in a Custom Cell? I
i am using vb.net i just wanna ask if we can place a picture
Hey guys, I have some questions would like to ask: I wanna ask how
I just wanna ask what best way to work around a Two-Dimensional Array (2
I just wanna ask best practice supposed I have three tables. posts, categories, post_Categories.
I just wanna ask if there's a way where I could put an object
I just wanna ask your opinion/suggestion on how to 'terminate' a running application/process is
I just wanna ask if there's a way in C#/ASP.NET to create 'dynamic' tables/fields
I just wanna ask if there's a possibility to retrieve the contents of a
just wanna ask what is acceptable size of ViewState per page? What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.