Re: Newline is not working !

From: Date: Thu, 16 Nov 2000 13:47:52 +0000
Subject: Re: Newline is not working !
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3903@lists.php.net to get a copy of this message
\n makes a new line in the HTML source. To have a new line show up in the browser, use an HTML tag such as <BR>. Hephaestus wrote: > > I guess this must really qualify as stupid but this is my first day in PHP. > I have PHP4 on NT Workstatation and PWS. Using PHPEd as my editor. > > When I say something as elementary as this in my php page > > <? > echo "This is a php test\n" ; > $var = "This is a string\n\n" ; > echo $var ; > ?> > The newline doesn't work when I view the page in a browser. I am using IE > 5.0 and NN 4.7 > Newlines however do work when I run the php file throo PHPEd. > My file extension is .php > I haven't made any change to the php.ini > What could be happening ? > > -- > Mujahid > > MURPHY'S LAW > If anything can go wrong, it will. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#3903) next »