Oh, ok then. I'll upload the file.
Here is the PHP file.
Here is a webpage running the file.
The page was built in Dreamweaver originally, so it is rather hard to edit in Notepad (Which I've been doing). You can basically skip everything before <?php though.
Thanks again.
In half an hour or so I am leaving on a three day trip, so I may not be able to post a reply for a little while.