Re: [PHP] Chopping off extra characters from input

2001-11-12 Thread PHPGalaxy.com
The substr function's a good safeguard, as well as using the maxlength="8" param in the tag for the text field (in the HTML) =) -- >From PHPGalaxy.com, earn up to $10 per order selling our PHP Scripts and Software on your Site. http://www.phpgalaxy.com/aff/ Also, get a fast free POP3 email a

Re: [PHP] Chopping off extra characters from input

2001-11-12 Thread Chris O'Brien
> I've got a problem where people are entering extra characters (due to an > inonsistency in the tracking numbers they are being given) in a number > they are entering in a form field. I have a PHP script querying a MySQL > database. What's the easiest way to take the input and use only the > fi