u can use nl2br() to convert \n to tags b4 echo the string in textarea.
Foong
"Neil M" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Adi wrote:
> > i want to add in textarea a string with new line tag in it. how to do
that?
> >
> > my try:
> > $string="-lin
Adi, et al --
I somehow missed the original message. Odd...
...and then Neil M said...
%
% Adi wrote:
% >i want to add in textarea a string with new line tag in it. how to do that?
% >
% >my try:
% >$string="-line1n\ -line2 n\-line3";
% >echo "$string";
Did you type this from memory or paste
At 12:55 23.01.2003, Neil M said:
[snip]
>Adi wrote:
>> i want to add in textarea a string with new line tag in it. how to do that?
>>
>> my try:
>> $string="-line1n\ -line2 n\-line3";
>> echo "$string";
>>
>> but i see a single line instead of:
>> -line1
>
Adi wrote:
i want to add in textarea a string with new line tag in it. how to do that?
my try:
$string="-line1n\ -line2 n\-line3";
echo "$string";
but i see a single line instead of:
-line1
-line2
-line3
tx in advance for any help
Hello
For a new line in a text area you cant use html 's
Yo
>i want to add in textarea a string with new line tag in it. how to do that?
>
>my try:
>$string="-line1n\ -line2 n\-line3";
>echo "$string";
>
>but i see a single line instead of:
>-line1
>-line2
>-line3
>
>tx in advance for any help
In addition to using \n instead of n\, you also should do:
ec
use \n
Adi wrote:
> i want to add in textarea a string with new line tag in it. how to do that?
>
> my try:
> $string="-line1n\ -line2 n\-line3";
> echo "$string";
>
> but i see a single line instead of:
> -line1
> -line2
> -line3
>
> tx in advance for any help
>
--
PHP General Mailing Lis
I'd say $string="-line1\n -line2\n-line3"
Newlines are \n, not n\
...
"Adi" <[EMAIL PROTECTED]> schreef in bericht
014b01c22424$5f999b00$9600a8c0@ady">news:014b01c22424$5f999b00$9600a8c0@ady...
i want to add in textarea a string with new line tag in it. how to do that?
my try:
$string="-line1n\
7 matches
Mail list logo