Helping ordinary people create extraordinary websites!

How To Put Your Articles Into Separate Pages

By Ben Sinclair
2005-04-09

The Article Part
Lets say this is your (extremely short) article:

Hello,

This article is about nothing much... This is just here for a page example.

I could go on forever... bla bla bla bla bla bla bla bla bla bla

And again... bla bla bla bla bla bla bla bla bla bla bla.

OK, you want to "cut up" the article into 3 seperate pages so that it is displayed better and is easier to read. This is what you would add to your article. You'll need to add a little bit of PHP:



<?php
$pages = "3"; // How many pages you want on the page
$article = <<<EOF
Hello,

This article is about nothing much... This is just here for a page example.

{ENDPAGE1}
I could go on forever... bla bla bla bla bla bla bla bla bla bla

{ENDPAGE2}
And again... bla bla bla bla bla bla bla bla bla bla bla.

{ENDPAGE3}
EOF;?>




Tutorial pages:
 1 Votes

You might also want to check these out:


Leave a Comment on "How To Put Your Articles Into Separate Pages"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS