No me funciona con nl2br.
Mis codigos:
Código HTML:
<form method="post" action="insertar.php" enctype="multipart/form-data" onsubmit="return validarForm(this);"> <textarea name="acerca_de_mi" cols="56" rows="7" STYLE="position:absolute; top:454px; left:-585px;" onKeyDown="CountLeft(this.form.acerca_de_mi, this.form.left2,400);" onKeyUp="CountLeft(this.form.acerca_de_mi,this.form.left2,400);"></textarea> <input name="left2" type="text" id="left2" value="400" size="2" maxlength="3" STYLE="position: absolute; top:595px; left:-585px;" /> <SPAN class="caracteres_quedan" STYLE="position:absolute; top:602px; left:-525px; color: black; " > caracteres te quedan </SPAN>
Código PHP:
<?php
mysql_connect("localhost","root","");
mysql_select_db("datos");
$id = strval( $_REQUEST['usuario1'] );
$sql = "SELECT * FROM datos1 WHERE usuario='{$id}'";
$cursor = mysql_query( $sql );
$fila = mysql_fetch_array( $cursor );
?>
<div id="acerca_de_mi" style="position:absolute; left:25px; top:520px; width:162px; height:14px; z-index:4" align="left">
<font style="font-size:14px" color=white face="Arial"><?php echo nl2br($fila['acerca_de_mi']); ?></font></div>