Artenis Posted October 1, 2008 Report Share Posted October 1, 2008 Nodzēšu textarea tīru, ierakstu tekst piemēŗam lauks: [šeit teiksts] kad saglabājas, tad man atkal iekš textarea teksts uzrādas šādi ( _ <- atstarpe): [___šeit teksts___] Kādēļ textarea tā daras!? Link to comment Share on other sites More sharing options...
bubu Posted October 1, 2008 Report Share Posted October 1, 2008 Parādi kā tu izvaid HTML'u ar ievadītajiem datiem. Link to comment Share on other sites More sharing options...
Artenis Posted October 1, 2008 Author Report Share Posted October 1, 2008 (edited) <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 October 1, 2008 by Artenis Link to comment Share on other sites More sharing options...
blackhalt Posted October 1, 2008 Report Share Posted October 1, 2008 (edited) 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 October 1, 2008 by blackhalt Link to comment Share on other sites More sharing options...
Artenis Posted October 1, 2008 Author Report Share Posted October 1, 2008 Paldies! :) Link to comment Share on other sites More sharing options...
Recommended Posts