[eluser]BrianDHall[/eluser]
Wow, I entirely mis-read the thread topic, my bad. I read that 0 was turning into an empty string - not that it had zero-fill at the beginning of a number. Oops.
Michael Wales is dead on - if '00123' is a string, it will come out '00123', but if it is an integer it will be '123' because integers don't get zero-filled. After all, no one says "I'm going to turn 040 soon"...but that damned James Bond doesn't play by such rules with his '007'. Ole James never plays by the rules...
Yes, so specifically when you assign a value to your form be sure it is in quotes, such as:
Code:
<input name="category" value="00123">
If the value isn't surrounded in quotes it'll be treated as an integer.