How to add two input values and display them in another input and fill the number in the input in the database?

Source: Internet
Author: User
How to add two input values and display them in another input and fill the number in the input in the database? There are four INPUT (A, B, C, D) in the form. two input values (A, B) and one input value (C) the size of one input value (B) is read from the database, and the other input (D) stores the result. how can we add two input values (A + C) is displayed in another input (D )? PS: how to fill the number read from the database in input (C)? thank you.


Reply to discussion (solution)

Learn how to use Ajax.

Learn how to use Ajax.


I want to use it tomorrow. how can I fill the value of the read database into the input?

How can I fill in the number of reads from the database in the input field using PHP.
Adding two input values can be done in JS.
You have to post the relevant code.

Asynchronously load input fill to read the database

It can be implemented using js or ajax.

How can I fill in the number of reads from the database in the input field using PHP.
Adding two input values can be done in JS.
You have to post the relevant code.


To read the corresponding exchange rate from the database based on the input date and fill it in the exchange rate input, the code is as follows:
 

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.