Re: Text box

From: Date: Mon, 19 Feb 2001 06:53:58 +0000
Subject: Re: Text box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40527@lists.php.net to get a copy of this message
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 <todd@aristesoftware.com> 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 > todd@aristesoftware.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#40527) next »