If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Now, my problem is this, it wont get the file count. If I set numofImages to an actual number the entire thing works perfectly fine. But for some reason it doesn't seem to get the file count. Any tips?

Not knowing about your personal PHP/Javascript knowledge or how the page(s) are set up I'll first just toss in a little note to make sure that your script code itself is on a .php page and also obviously the same page that sets the $filecount variable.

I suppose I could have looked it up quickly, but I have never seen the format <?=$variable?> used to insert PHP in to a page. Generally I always set a proper opening and closing PHP tag and then simply echo out any data I want printed in the page's source.

"Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"