Re: [PHP] Limiting text inputs by character count?

2002-06-24 Thread George Whiffen
fields etc., I switch off and lose confidence in the site. George -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 9:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] Limiting text inputs by character count

Re: [PHP] Limiting text inputs by character count?

2002-06-24 Thread Chris Shiflett
George Whiffen wrote: The best way to do this is server side with strlen(). You can use javascript or maxlength, but if a user wants to get around it, they can. ---John Holmes... John, The best way to do this is with both. maxlength/Javascript as a courtesy, strlen for security. As

[PHP] Limiting text inputs by character count?

2002-06-23 Thread Andre Dubuc
Is there a way to limit the number of characters that may be inputed into: a) a input type=text . . . input b) a textarea . . . input I would like to control the maximum number of characters for each of these inputs. Any suggestions of where to look, or how to do it, if it's

RE: [PHP] Limiting text inputs by character count?

2002-06-23 Thread Martin Towell
a) maxlength=xx b) use javascript (document.forms[frm_name].elements[textarea].value.length) (I think you need the .value bit) -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Limiting text

RE: [PHP] Limiting text inputs by character count?

2002-06-23 Thread Peter
PROTECTED] Subject: [PHP] Limiting text inputs by character count? Is there a way to limit the number of characters that may be inputed into: a) a input type=text . . . input b) a textarea . . . input I would like to control the maximum number of characters for each

Re: [PHP] Limiting text inputs by character count?

2002-06-23 Thread Andre Dubuc
: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Monday, 24 June 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Limiting text inputs by character count? Is there a way to limit the number of characters that may be inputed into: a) a input type=text . . . input b) a textarea

RE: [PHP] Limiting text inputs by character count?

2002-06-23 Thread John Holmes
]'; [EMAIL PROTECTED] Subject: RE: [PHP] Limiting text inputs by character count? a) maxlength=xx b) use javascript (document.forms[frm_name].elements[textarea].value.length) (I think you need the .value bit) -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED