Warning: Division By Zero In /home/lvfoo0/public_html/handle_oocalc.php On Line 33Mar 15, 2010
I am writing a calculator script for a friend of mine but keep getting an error. I need to pass some values to the handle.php script and then do more calculations in that script. I am new to php and never written a script like this.
The HTML page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Warning: Division by zero in /home/lvfoo0/public_html/handle_oocalc.php on line 33
Here are the results:
0.00 gallons needed for the trip.
0.00 is the total fuel cost.
1,000.00 is your net profit.
0.83 is the dollar per mile.