stof01 Posted February 19, 2009 Share Posted February 19, 2009 Hi Got a few questions... Have to create a page that takes some inputs from a user then computes the average speed.i cant seem to get this to work ,whether its my index file or handle form file? please may I email my files to someone who can look over them... much appreciated Chris [email protected] Link to comment https://forums.phpfreaks.com/topic/145908-help-with-a-simple-average-calculation-on-my-handle-form-page/ Share on other sites More sharing options...
krs10_s Posted February 19, 2009 Share Posted February 19, 2009 I can't get it right either!!!!! Link to comment https://forums.phpfreaks.com/topic/145908-help-with-a-simple-average-calculation-on-my-handle-form-page/#findComment-766057 Share on other sites More sharing options...
krs10_s Posted February 19, 2009 Share Posted February 19, 2009 ok i got as far as to make it work but i don't know how to do it with the minutes too? i've only divided the distance by the hours <?php $hour=$_POST['hour']; $distance=$_POST['distance']; $average=$distance/$hour; $average=round($average,2); print $average; ?> Link to comment https://forums.phpfreaks.com/topic/145908-help-with-a-simple-average-calculation-on-my-handle-form-page/#findComment-766073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.