Crawl Ratio Calculator

Check out the new Speedometer calculator!

'; $ip = $_SERVER['REMOTE_ADDR']; $query=mysql_query('insert into gearcalc (id,ip,ratio,name) values (\'\',\''.$ip.'\',\''.$ratio.'\',\''.$_POST['name'].'\')'); if (!$query){echo 'mysql_error NO. 7'.mysql_error();} } ?>
Pick your axle differential gears:>

Transmission 1st Gear>

Transmission type

Transfer case low range>

Range Box / Doubler Case>

Range Box / Doubler Case>

Enter your name>

Your Crawl ratio is '.$ratio.':1


Speedometer Calculator

Speed (MPH)>

Engine RPM>

Tire Size>

Gear Ratio>

only 3 entries!!!!!!

'; } else echo "Enter Any Three of the Four Values Below


"; } function speedo_data($name){ $ratio = $_POST['ratio']; if ($ratio != 0){ $speedo['speed'] = $_POST['RPM'] * $_POST['tiresize'] *0.002974993044602775535 / $ratio; } if (isset($_POST['RPM']) && $_POST['RPM'] != 0){ $speedo['tiresize'] = $_POST['speed'] * $ratio / ($_POST['RPM'] * 0.002974993044602775535); } if (isset($_POST['tiresize']) && $_POST['tiresize'] != 0){ $speedo['RPM'] = $_POST['speed'] * $ratio / ($_POST['tiresize'] * 0.002974993044602775535); } if (isset($_POST['speed']) && $_POST['speed'] != 0){ $speedo['ratio'] = $_POST['RPM'] * $_POST['tiresize'] * 0.002974993044602775535 / $_POST['speed']; } if ($speedo[$name] != 0){ echo $speedo[$name]; } else echo $_POST[$name]; } function post_data($name, $default) { if (isset($_POST[$name])){ echo $_POST[$name]; } else echo $default; } function post_data_select() { if ($_POST['ttype'] == 1.9){ echo '