perform operations on inputted data
-
Hello, and congratulations on this very good plugin.
Can someone help a bit and and point out how I can perform various operations (mostly arithmetic) on the inputted data?In the FAQ, it is mentioned to use fm_get_form_item(itemID) via javascript, but I cannot access any data from the database.
For example :<script type=”text/javascript”>
<!–
function js_bmi(){
var js_varos,js_ypsos;
js_varos=fm_get_form_item(varos);
js_ypsos=fm_get_form_item(ypsos);
return js_varos/((js_ypsos/100)*(js_ypsos/100));
}
window.onLoad=document.write(js_bmi());
//–></script>If I manually replace the fm_get_form_item(…) functions with their current database values, the output is correct, but I want to access the data that each user puts there.
This specific part is a BMI calculator, the user inputs his weight and height through a form and I want the function needs to access the form data and calculate the BMI.
Any help would be much appreciated!!!!!!
The topic ‘perform operations on inputted data’ is closed to new replies.