Jump to content
php.lv forumi

texarea tuksumi


Artenis

Recommended Posts

	<textarea  onChange="autoUpdate(<?php echo $row['id']; ?>, this.value,this.name,<?php echo $id; ?>)" class="prece" name="prece">
<?php echo $row['prece']; ?>
</textarea>

Mans textarea lauks...

Iekš datubāzes tekstam nav pievienotas tās atstarpes, tās parāas tikai pašā textarea

Edited by Artenis
Link to comment
Share on other sites

Tādēļ, ka tu textarea atstaj tukšumus.

Vajag tā:

 

<textarea  onChange="autoUpdate(<?php echo $row['id']; ?>, this.value,this.name,<?php echo $id; ?>)" class="prece" name="prece"><?php echo $row['prece']; ?></textarea>

 

Tipa lai ir

<textarea></textarea>

 

Ja būs pat

<textarea>
</textarea>

, tad tā būs jaunrinde.

Edited by blackhalt
Link to comment
Share on other sites

×
×
  • Create New...