What you put in between the <textarea ...> and the </textarea> is what you
get.
Tabs, spaces, newlines, spiders and snakes and all.
If you don't want it there, don't put it there.
Since that messes up your indenting, for your editor, maybe you could do:
<?php
$text = "Line 1\nLine2\n";
?>
<textarea ...><?php echo $text;?></textarea>
so you can squeeze it all on one line.
Or some variant on this idea.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Todd Cary <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Saturday, February 17, 2001 3:06 PM
Subject: [PHP] Text box
> If I have the source of a <textarea> indented, the spaces are added to
> the left side. Can this be avoided or do I have to make sure that me
> source is on the left side of the script?
>
> This will have spaces for the two lines:
>
> <textarea name="textareaName" cols="62" rows="19">
> This is line 1.
> This is line 2.
> </textarea>
>
> This will not:
>
> <textarea name="textareaName" cols="62" rows="19">
> This is line 1.
> This is line 2.
> </textarea>
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]