# I Have No Idea What To Do

**URL:** https://forum.kirupa.com/t/i-have-no-idea-what-to-do/229987
**Category:** programming
**Created:** [June 21, 2007, 8:33pm UTC](https://forum.kirupa.com/t/i-have-no-idea-what-to-do/229987 "2007-06-21T20:33:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![understudy](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@understudy](https://forum.kirupa.com/u/understudy)
#### Post date: [June 21, 2007, 8:33pm UTC](https://forum.kirupa.com/t/i-have-no-idea-what-to-do/229987/1 "2007-06-21T20:33:37Z")

</div>

Hello,

Here’s the idea—

I want a snippet of code to capture a piece of the URL and use that information to load items in the page.

For example—

In the source of [http://www.example.com/XYZ.php](http://www.example.com/XYZ.php) (XYZ.html, XYZ.asp, etc.), there would be a piece of code that recognized the ‘XYZ’ part of the URL and loaded a list of the files found in the folder [http://www.example.com/files/ABC/](http://www.example.com/files/ABC/)

Any recommendations?

Thank you.
