Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   Web Design and Hosting (http://www.mac-forums.com/forums/web-design-hosting/)
-   -   Forms (http://www.mac-forums.com/forums/web-design-hosting/763-forms.html)

muso 05-28-2003 07:00 AM

Forms
 
Anybody know a way of limiting the number of characters in a textarea short of making an error page with php?

urbandyke 09-21-2003 08:15 PM

Using Javascript an option?

Murlyn 09-21-2003 09:59 PM

Well you could just take let's say the first 50 characters by doing something like this:

$newString = substr($_POST['textarea'], 0, 50);

But if you want it to be interactive then I would use javascript.


All times are GMT -4. The time now is 08:41 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.