Php form submission button

Source: Internet
Author: User
Tags php form
The php form submission button is used to test and write a message board. you want to modify the function ., There are three buttons. how can I click different buttons to submit different content. Thank you very much. The source code of only one button is as follows: (I want to add two buttons after the name and title to submit the button) & lt; formaction = & quot; add. php & quot; method = & quot; po php form submission button

I tested and wrote a message board. I want to modify the function ., There are three buttons. how can I click different buttons to submit different content. Thank you very much.
The source code of only one button is as follows: (I want to add two buttons after the name and title, or submit them)


------ Solution --------------------
This is the first time I have seen this requirement. The simplest method is to write three forms, with a box and a submit in each form.
------ Solution --------------------
Or you can take a look at ajax and use Javascipt to complete it.
However, the common practice is that there is only one submit button, and the server determines whether the form value is empty before performing the corresponding operation.
------ Solution --------------------
If you want to add a value to the submitted form, for example, button1 can filter out unwanted parts (button2.button3) when receiving data in php.
There are also a lot of front-end solutions, but I really don't know what your requirements are.
------ Solution --------------------
As long as you assign different names to the three "OK" buttons, you can process them separately in the received and submitted php programs.

Unfortunately, there is only one submit button in your sample code. I don't know where the two are?

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.