TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10-27-2007, 10:24 PM   #1 (permalink)
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
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:36 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design