Get Data From Form

i have an _update.php form file used to update data…

inside, there is a textfield like this. Basically it’s a part of the form where we input value and then submit it…

Basically it used to calculate number of days between the start date and the end date…

morning and noon is the session in a day… each means for half day… Anyway…

My question: is there a way to get the value from the textfield before we submit the form?

Because the result of the calculation will be stored in the other variable in the same form…

Or if it is not possible, i want to know where does it go after we press the submit button.

In which file the process run after the submit button pressed?

you can use the beforeSave function. and for the date, why not you use datePicker?

Use Javascript to do some client validation