RE: Warning: Division by zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's always better to validate your inputs in any was possible, this
helps prevent exploits. 

-----Original Message-----
From: Gary [mailto:gwpaul@xxxxxxx] 
Sent: Thursday, April 30, 2009 8:51 AM
To: php-general@xxxxxxxxxxxxx
Subject:  Warning: Division by zero

I have a script that is a result of data entered in a form

On the script (when I test without data entry), I am getting a warning
that
Warning: Division by zero in .inc.php on line 15.

The warning is correct, however the viewer cannot access the second
script without entering the data that would cancel the warning.

Is this something I should worry about? or would it be better to right
in an isset?

I'm sorry if this does not seem clear. 



--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux