[snip] > Having trouble getting PHP to treat string data (POST or GET) as a > number for a script calculation? You can also use casts in PHP to achieve the same effect, like this: $duration = (int)$HTTP_POST_VARS; [/snip] And then there is the always handy settype() http://www.php.net/settype