Hola
michelrods
Para eso tendrías que usar JavaScript. Un ejemplo:
Código:
<html>
<head>
<script type="text/javascript">
function validar(e,obj) {
tecla = (document.all) ? e.keyCode : e.which;
if (tecla != 13) return;
filas = obj.rows;
txt = obj.value.split('\n');
return (txt.length < filas);
}
</script>
</head>
<body>
<textarea rows="15" cols="40" onkeypress = "return validar(event,this)"></textarea>
</body>
</html>
Saludos,