View Single Post
Old 10-27-2007, 10:24 PM   #1 (permalink)
Dorza
The Wanderer
 
Join Date: Sep 2007
Location: Wales - UK
Posts: 8
Thanks: 0
Dorza is on a distinguished road
Default Extracting page titles and placing into dropdown box.

Hi, I've been trying to figure this out for the past few days but can't do it. I am usless at explaining things so I'll do it in point form..

p1 ). I have a text area where an article is written e.g.

Code:
<h5>Title for Page 1</h5>
Page one content

<h5>Title for Page 2</h5>
Page two content

<h5>Title for Page 3</h5>
Page three content
This then gets submitted to the db where it is retreived when a viewer wants to read the article...

p2) On the public front end a script splits the record up into 3 pages and outputs links such as "Prev - 1, 2 ,3 - Next">. I have reached this stage and it all works perfectly.

p3) The issue(s*) I have is that to make navigating easier I would like the page titles to appear in a drop down box and when submitted the user would be taken to the appropriate page; See here.

How does one extract the page titles and stick them in a drop down box?

*In addition to this I am using [NEWPAGE] above each page title (<h5> tags) in the article creation text box to indicate a new page and its this that explode() looks for when creating pages, I would rather it actually search for the page titles them selves which are housed between <h5> tags.

Last edited by Dorza : 10-28-2007 at 12:02 AM.
Dorza is offline  
Reply With Quote