Hello,

"Jim" <[EMAIL PROTECTED]> wrote: 

...[snip]...

> How do you guys go about resolving this situation?

Well, first, increase the size of your field, say VARCHAR(100) then in your form, use 
"maxlength" like this:

  <input type="text" name="mytext" size="50" maxlength="50" />

That would prevent them from entering more that 50 characters. (At least, that's how 
it should work.) But, just to make sure, count the characters entered using strlen() 
or something before you use htmlspecialchars()...

- E

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/


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

Reply via email to