Mac Forums

Mac Forums (
-   Web Design and Hosting (
-   -   Forms (

muso 05-28-2003 06:00 AM

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 07:15 PM

Using Javascript an option?

Murlyn 09-21-2003 08: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 10:21 AM.

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