HI,
I have created three new fields $field1, $field2, $field3 on related to the Links table. They appear on the form and its OK.
What I would like to do is to have have this calculus made
$field3 = ($field1 + $field2)/2 when the user calick on "Add links" button
(in reality there are more than two fields and the calculus is a bit more complicated)
An I would like to have visible for th user when he sees the data entered.
Where should include this calculus? In the add_record function ? in the format_insert_cgi?
Thanks in advance for your answers.
vercyb
I have created three new fields $field1, $field2, $field3 on related to the Links table. They appear on the form and its OK.
What I would like to do is to have have this calculus made
$field3 = ($field1 + $field2)/2 when the user calick on "Add links" button
(in reality there are more than two fields and the calculus is a bit more complicated)
An I would like to have visible for th user when he sees the data entered.
Where should include this calculus? In the add_record function ? in the format_insert_cgi?
Thanks in advance for your answers.
vercyb