Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Paragraphs


Guest

Recommended Posts

Hi,

 

Apologies for asking the question as I should really go on a course, however :)

 

I am trying to write a paragraph and would like it to be seen as follows:

 

Start

 

My name is Joe Blogs.

 

----

 

I live in a big brown house.

 

----

 

Thankyou for viewing my page.

 

 

;End.

 

 

Now I know that to start a paragraph is starts like this:

 

define('TEXT_INFORMATION', 'My name is Joe Blogs'); but I am now not too sure how to start the next line or paragraph?

 

Thanks in advance for your help.

 

SaH.

Link to comment
Share on other sites

define('TEXT_INFORMATION', '<p>My name is Joe Blogs</p>
<p>I live in a big brown house.</p>
<p>Thank you for viewing my page.</p>');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

You can do it like this

define('TEXT_INFORMATION', 'My name is Joe Blogs<br>This is your next line.<br>This is another line.');

Or like this

define('TEXT_INFORMATION', '<p>My name is Joe Blogs</p><p>This is your next line.</p><p>This is another line.</p>');

Link to comment
Share on other sites

define('TEXT_INFORMATION', '<p>My name is Joe Blogs</p>
<p>I live in a big brown house.</p>
<p>Thank you for viewing my page.</p>');

Spot on Thankyou.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...