Hi,
This is just a demo that explains how to use WordPress image upload option for our custom pages/forms and Plugins. Hope this will help you.
Contact me if you need assistance. http://phpsmashcode.com/contact
For Demo follow the steps:
- Just create a wordpress page in wordpress named "Test" and its slug should be test.
 - Upload the file page-test.php in to your theme folder.
 - Run the page in your browser.
 
You can customize this code and can use any where.