Get URL and pass folder or filename to hyperlink
<p>I would like to capture the folder listed in the url and pass that value into a hyperlink. For example:
www.anything.com/123456</p>

<p>I would like to capture '123456' and add it to a hyperlink</p>

<p>www.anything.com/123456/contact.php</p>

<p>The reason for this is that I need to create a menu that will be inserted into the page via php include. That way changes can be made to the menu which will change hundreds of individual index pages.</p>

<p>There will be hundreds of folders, each named with a number. The script needs to capture that number and send a user to the correct contact page. </p>

<p>Hope that makes sense.</p>
