English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

without pressing anything then when it displays the result on a certain fields inside a form then pressing the submit button it will be save to mysql database.... I know already the saving but the computation syntax inside the form... how?

2006-12-27 15:16:58 · 2 answers · asked by edwinbiasbas 1 in Computers & Internet Programming & Design

2 answers

If I understand your question correctly, what you want to do is something like this:

In Textbox A, someone enters a number, such as 30.

In Textbox B, someone enters another number, such as 12

In Textbox C, someone enters another number, such as .5

Textbox D then shows the result of (Textbox A - Textbox B) * Textbox C.

When the user submits the form, the value of Textbox D is saved to the database.

To do that, you would use a combination of JavaScript and PHP.

I am working on a demo and will post an update with code in about 1-2 hours.

UPDATE:

http://www.dougv.com/blog/2007/01/01/using-php-mysql-to-store-a-form-value-calculated-via-javascript-dom/

2006-12-27 15:23:28 · answer #1 · answered by Anonymous · 0 0

rather have been given 2 quarters to rub in my hand yet i'm able to write a poem as terrific as i'm able to. Aint have been given no fancy stile specific aint have been given no flooring made from tiles. i'm in basic terms a adverse housewife that needs a advance I specific dont have a contemporary. stable write.. If i had 10 to offer it to ya.

2016-12-15 09:29:32 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers