neo Posted August 20, 2004 Report Share Posted August 20, 2004 Lieta taada, ka ievietojot parastaa texta laukaa mainiigaa veertiibu kas ir piemeeram: $m="kaut kaads texts"; paraadaas tikai pirmais vaards. Ja starp vaardiem iznem aaraa astarpes, tad paraadaas viss textxs. kaa var paraadiit texta laukaa visu teikumu? P.S. Varbuut laamerisks jautaajums, bet tochna nevaru nekaaadi piedabuut shito lietu. Link to comment Share on other sites More sharing options...
blackhalt Posted August 20, 2004 Report Share Posted August 20, 2004 Paradi kaut ko no tā koda! man viss rukā :) $m='kaut kaads texts'; echo'<textarea>'.$m.'</textarea>'; Link to comment Share on other sites More sharing options...
neo Posted August 20, 2004 Author Report Share Posted August 20, 2004 ieks textarea jaa, bet pameegini shitaa: $m="kaut kaads texts"; echo "<input type=text value=$m>"; Link to comment Share on other sites More sharing options...
deo Posted August 20, 2004 Report Share Posted August 20, 2004 Viss ir kaartībā, vienīgais neliela uzmanības kļūda - atribūtam VALUE jābūt pēdiņās, t.i.: $m="kaut kaads texts"; echo "<input type=text value=\"$m\">"; Ja nemaldos, šādi vaidzētu strādāt. Link to comment Share on other sites More sharing options...
neo Posted August 20, 2004 Author Report Share Posted August 20, 2004 tev deo par shito padomu vajadzētu iedot medaali :) Super. Paldies!!! Link to comment Share on other sites More sharing options...
deo Posted August 20, 2004 Report Share Posted August 20, 2004 npk! ;) Link to comment Share on other sites More sharing options...
bubu Posted August 21, 2004 Report Share Posted August 21, 2004 Tā iet, ka nelasa dokumentāciju :) HTMLā vispār visus atribūtus ieteicams likt pēdiņās, nemaz nerunājot par XML, kur tas ir obligāti. Link to comment Share on other sites More sharing options...
Venom Posted August 23, 2004 Report Share Posted August 23, 2004 un lūdzu, lūdzu, šādas te KROPLĪBAS echo "<input type=text value=\"$m\">"; vietā rakstīt echo '<input type=text value="'.$m.'">'; Link to comment Share on other sites More sharing options...
Kaklz Posted August 23, 2004 Report Share Posted August 23, 2004 echo '<input type=text value="'.$m.'">'; echo '<input type="text" value="'.htmlspecialchars($m).'" />'; (Gadījumā, ja $m = 'bla bla " bla ';) Link to comment Share on other sites More sharing options...
Recommended Posts