I need a webpage that will do some basic math calculations and draw the results on a graph on the same page.?
The attached excel sheet provides the calculations needed. Basically a person enters their weight and height the rest is calculated and plotted.
This will be a better version of? a bmi calullator. For more info on BMI calculator click the link below.
<[login to view URL]>
Plain PHP will be fine. I just assumed that I need javascript. Below is what I have right. I basically want the code expanded.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function mod(div,base) {
return [login to view URL](div - ([login to view URL](div/base)*base));
}
function calcBmi() {
var w = [login to view URL] * 1;
var HeightFeetInt = [login to view URL] * 1;
var HeightInchesInt = [login to view URL] * 1;
HeightFeetConvert = HeightFeetInt * 12;
h = HeightFeetConvert + HeightInchesInt;
displaybmi =[login to view URL]((((w * 703) / (h * h)))*100)/100;
var rvalue = true;
if ( (w <= 35) || (w >= 900)? || (h <= 48) || (h >= 120) ) {
alert ("Invalid data.? Please check and re-enter!");
rvalue = false;
}
if (rvalue) {
if (HeightInchesInt > 11) {
reminderinches = mod(HeightInchesInt,12);
[login to view URL] = reminderinches;
[login to view URL] = HeightFeetInt +
((HeightInchesInt - reminderinches)/12);
[login to view URL] = displaybmi;
}
[login to view URL] = displaybmi; }
return rvalue;
}
//? End -->
</script>
## Deliverables
This code will be used in multiple websites. Please include installation instructions. Basically I only want to copy code to my php file. I have no control on the server.? When you bid, please send me a link of previous job so that I can see how the final product will look like.?
Contact me if you have any calculatiom (math)? questions.