andrisp Posted May 18, 2005 Report Share Posted May 18, 2005 kaads luudzu var pastaastiit, kaa lai iestaasta textarea laukam, lai vinjs vairaakus tukshos speisus un jaunaaas rindas, piemeeram, kaa sheit texts texts2 texts3 nepaartaisa par texts texts2 texts3 paliidziet luudzu Link to comment Share on other sites More sharing options...
andrisp Posted May 18, 2005 Author Report Share Posted May 18, 2005 ai koes te murgoju.. datubaazee viss ierakstaas ei okei, bet kad njem arraaa no datubaazes un ievieto html lapaa, tad gan tiek izgrieztas visas newlines etc.. Link to comment Share on other sites More sharing options...
v3rb0 Posted May 18, 2005 Report Share Posted May 18, 2005 pastāv viedoklis ka html`s ignorē newlines :P paskaties uz http://lv.php.net/nl2br Link to comment Share on other sites More sharing options...
Venom Posted May 18, 2005 Report Share Posted May 18, 2005 nl2br() Link to comment Share on other sites More sharing options...
arnico Posted May 18, 2005 Report Share Posted May 18, 2005 ai koes te murgoju.. datubaazee viss ierakstaas ei okei, bet kad njem arraaa no datubaazes un ievieto html lapaa, tad gan tiek izgrieztas visas newlines etc.. 17646[/snapback] :) pie teksta izvadiishanas : $text = str_replace ("\r", "", "$text"); $text = str_replace ("\n", "<br>", "$text"); #prieksh xHTML # $text = str_replace ("\n", "<br />", "$text"); Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 18, 2005 Report Share Posted May 18, 2005 (edited) ai koes te murgoju.. datubaazee viss ierakstaas ei okei, bet kad njem arraaa no datubaazes un ievieto html lapaa, tad gan tiek izgrieztas visas newlines etc.. 17646[/snapback] tieshi taa :) Uzreiz nepateikshu bet HTMLaa ir tags kas ljau izvadiit teksta bloku ar visiem speisiem utt. tobish. tieshi taadu kaads vinsh ir nepgriezot atstarpes utt. (standartaa vinsh starp vardiem atstaaj 1 atstarpi) Apskatijos :) tags = PRE -------- <PRE ...> is one the handiest tags in the HTML toolbox. <PRE ...> marks the text as "preformatted" -- all the spaces and carriage returns are rendered exactly as you type them. --------- Edited May 18, 2005 by Grey_Wolf Link to comment Share on other sites More sharing options...
Venom Posted May 18, 2005 Report Share Posted May 18, 2005 bet iekš pre ja kāds sabāzīs kaudzēm atsrarpes tad aizies width dejot Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 18, 2005 Report Share Posted May 18, 2005 bet iekš pre ja kāds sabāzīs kaudzēm atsrarpes tad aizies width dejot 17654[/snapback] tas gan :( parasti es vienkarshi ar php izgriezu visas liekaas atstarpes un parejas uz jaunu rindu (iespeejami atstaajot 3-5 ) resp. liidzko ir peec kartas ir vairaak kaa 3 liekaas izgriezam P.S. un viss tas tiek dariits pirms saglabaasanas...... Link to comment Share on other sites More sharing options...
Recommended Posts