Just add a CFML check to the processing page:

<CFIF Len(FORM.MyTextArea) GT 300>
  You entered more then 300 characters into the text area.<br>
  <CFEXIT>
</CFIF>

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
BlueDragon Alliance Member
[EMAIL PROTECTED]


Steve LaBadie wrote:
> I am using JavaScript to limit the amount of text on can submit in the
> textarea. Realizing disabling JavaScript may allow people to enter more
> than 300 characters in the textarea field. Does anyone have any
> suggestions or thoughts?
> 
>  
> 
> JavaScript:
> 
>  
> 
> <script type="text/javascript">
> function textCounter(field, countfield, maxlimit) {
> if (field.value.length > maxlimit)
> field.value = field.value.substring(0, maxlimit);
> else 
> countfield.value = maxlimit - field.value.length;
> }
> </script>
> 
>  
> 
> <textarea name="problemDesc" wrap="physical" cols="50" rows="8"
> onKeyDown="textCounter(this.form.problemDesc,this.form.remLen,300);"
> onKeyUp="textCounter(this.form.problemDesc,this.form.remLen,300);"
> class="formveld"></textarea>
> 
>  
> 
> Steve LaBadie, Web Manager
> East Stroudsburg University
> 200 Prospect St.
> East Stroudsburg, Pa 18301
> 570-422-3999
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.esu.edu <http://www.esu.edu> 
> 
>  
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294634
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to