|
-
May 4th, 2010, 02:05 AM
#1
Thread Starter
Hyperactive Member
Using PHP to create links on a page
My page is split into 2 divs - #content and #sidebar and I'm splitting this into 2 php pages.
What I'd like to do is insert a function into #sidebar (sidebar.php) where it will scan #content (content.php) for a
HTML Code:
<a name="#1"></a>
tag and then output a
HTML Code:
<a href="1">1</a>
into sidebar.php
Can anyone help start me off on this - I know I need to put the results into an array and then output them somehow, but I'm not sure how to correctly scan content.php. (By the way content.php will just be a static page and not contain any dynamic content).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|