Your approach actually seems pretty good to me. I've used two other approaches in the past though and I'll describe them to give you some other ideas.
Option 1: Multi-Page Form You submit a document in stages. From the user's perspective, they click a button to "add document". This lets them add the first page of the document. Submit the first page and a web page displays the first page and provides a link to add page. Click the add page button and receive another form. Entering information into this form and submitting creates a new page that gets appended to the document. Repeat process. Option 2: Single form - auto page breaking Have a single form people copy their document into. The entire form goes into the database. When the system goes to display the document, you use string functions to grab a range of characters from the text that get displayed. For example, page 1 will display characters 0 through 2000. Oop... I just remembered, I think I broke this out by words to make sure individual words weren't chopped. Hope that helps =) -Ed -----Original Message----- I'm trying to determine the best way to break dynamic content into pages before flowing into a template (with "1|2|3" type paging icons at the bottom of the page). I considered using a user-defined type code like "[pagebreak]" that would allow content contributors to determine the page breaks themselves when entering the article into the database. A parsing function would grab the chunk of text/html between the appropriate [pagebreak] codes for each page. But this just doesn't seem a very elegant solution. Anyone know of a better way to do this? **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php