Ok so I am working on a page: http://imageparticle.com/apache/Draft%201/newthesis.php
This is really my first time using php, but anyway, basically the thing takes the input from the first page, and then shows the % change from year to year on the next page for each category (cash, etc)
the PROBLEM right now is that when it does this, and the user hasnt filled in every single input, it gives div by 0 errors.
I know perfectly well why this happens, however i'm not quite sure how to fix it? Ideally i would just like to set all of the default values to 1 instead of 0.... as this would eliminate the problem, however, i'm not sure how to do that? Any help would be appreciated. Thanks.
This is really my first time using php, but anyway, basically the thing takes the input from the first page, and then shows the % change from year to year on the next page for each category (cash, etc)
the PROBLEM right now is that when it does this, and the user hasnt filled in every single input, it gives div by 0 errors.
I know perfectly well why this happens, however i'm not quite sure how to fix it? Ideally i would just like to set all of the default values to 1 instead of 0.... as this would eliminate the problem, however, i'm not sure how to do that? Any help would be appreciated. Thanks.
Comment