And I'm saying all input validation should be done client-side before submittion. Just basic good database design and practice regardless of platform.
No, I don't assume that everyone uses IE, only about 80% of the PCs in the world is all. I was just using it as a for-instance. Now I don't know what your site is for, where it is hosted, or who your target audience is.
I do know that it involves the issuing of credits, which I assume have some real monetary or material value. So I deduce that you have a commercial site of some sort. And I know that your stated problem that it was open to abuse, so I assume you are liable for some sort of monetary loss.
Now you have been having trouble validating this input in PHP, and the experienced and knowledgeable respondants have not been able to come up with an easy solution to what is, in javascript, a trivial problem. Every site that I have been involved with that used user input, used javascript to validate that input. Never a problem, and to my knowledge, no user has ever complained, or even noticed. The rare few (about 1-2% of surfers) who know enough to use a browser other than NS or IE generally also know enough to recognise a standard validation script from a nasty destructive one.
But it is your site. Can the javascript and use PHP by all means. I was only trying to help.
PS I don't even bother to write javascripts from scratch anymore, there are so many good ones on the java forums and resources.