Re: [PHP] Column size, user input and htmlspecialchars

2003-01-10 Thread - Edwin
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: That would prevent them from entering more that 50 characters. (At least,

[PHP] Column size, user input and htmlspecialchars

2003-01-10 Thread Jim
Hi, No problems with my code but instead I'd like some views on the best way of doing the following: When I read in a text field from a users HTML form, I will allow them a maximum of say 50 characters. So, I define the corresponding field in MySQL to be VARCHAR(50). The problem is that after I r