Quote:
|
Originally Posted by pkcidstudio
i checked the search area and didnt come up with anything. i know this is somethign that one of you knows off the top of your head.
with php how to imput line breaks in a result form that gets sent.
if we wanted to do it in html it would look like this
"bla bla la
<br />
bla la la"
how is it done in php
|
Like you say it is done using <br /> in HTML the same is correct for PHP.
echo("The line breaks <br /> here");
That will result in your page looking like
The line breaks
here
However when viewing the source of the outputted HTML it will look like.
The line breaks <br /> here
If you want to add a line break in the outputted source its.
The line breaks \n <br /> here
Which will result in the source looking like this
The line breaks
<br /> here