Re: Simplest problem
| From: | Marc Koschewski | Date: | Wed, 28 Jun 2000 01:02:53 +0000 |
| Subject: | Re: Simplest problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3521@lists.php.net to get a copy of this message | ||
> Hey!
>
> Guys I know...that in HTML we use <br> tag to change the line.
> But I am referring that \n from a book on php called
> Core PHP Programming by Leon Atkinson.
> This guy says to use a "\n"
>
> Now tell me what is the exact problem.
>
>
> Thanx
> Dhaval Desai
>
>
>
>
>
> >From: Oyvind Gronnesby <oyving@orakel.ntnu.no>
> >Reply-To: php-general@lists.php.net
> >To: dhaval desai <dhaval_adams@hotmail.com>
> >CC: php-general@lists.php.net
> >Subject: Re: [PHP] Simplest problem
> >Date: Wed, 28 Jun 2000 10:26:06 +0200
> >
> >dhaval desai,
> > > Hey1
> > >
> > > I am saving the file as .php3 extension not as .htm/.html
> > >
> > > Can u tell me what should I do to change the line.
> >
> >What Rasmus is saying is that you should change the line
> >
> > print("$rk is Ramesh\n");
> >
> >to
> >
> > print("$rk is Ramesh<br>");
> >
> >The '<br>' tag is what you use in HTML to get a newline and has
> >nothing to do with whether the file is saved with a .php3 or .html
> >extension.
> >
> >--
> >Øyvind Grønnesby
> >"Wow, I had knowledge!"
> > --Buffy
>
> ____________________________________________________________________
> __ __ Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.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
>
hi, dhaval
\n inserts a newline into that html document, but as newlines are
ignored by web browsers, you won't ever see a break on your page.
in
order to insert a break into your page, you need to insert a <br>
tag.
bye, marc
Mit freundlichen Gruessen,
marc koschewski
softwareentwicklung
freund & co. gmbh
mollenkotten 195
42279 wuppertal
fon: +49 2 02 / 2 62 78 - 0
fax: +49 2 02 / 2 62 78 - 20
eMail: m.koschewski@freund-co.com
www: http://www.freund-co.com/