I have a requirement where a user can specify a url
http://www.mysite.com/displaythread.php?t=863
He then specifies total no of pages in that thread and the software automatically loops through all pages and downloads images
For eg: If no of pages is 20, then the pages looped will be in following manner
http://www.mysite.com/displaythread.php?t=863 to http://www.mysite.com/displaythread.php?t=863&page=20
How can I write code for it?