thenewperson Posted December 4, 2009 Share Posted December 4, 2009 Curious on how to make a download page with download button link. I understand how to make a download button and put a link in it but i dont know how to do that when i upload the file. I want it sort of like rapidshare where when you upload file it will give you link to download page instead of the item itsself. I want to be able to use same page with different links on the download button if that makes since. Any idea on how to do that? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 4, 2009 Share Posted December 4, 2009 Curious on how to make a download page with download button link. I understand how to make a download button and put a link in it but i dont know how to do that when i upload the file. I want it sort of like rapidshare where when you upload file it will give you link to download page instead of the item itsself. I want to be able to use same page with different links on the download button if that makes since. Any idea on how to do that? Here is a nice example to show you how to upload a file using PHP: http://www.tizag.com/phpT/fileupload.php From there you should read about security practices involving files and learn how to create a template, specifically creating a database that stores the filenames etc. Some info here: http://www.phpfreaks.com/tutorial/php-basic-database-handling In your upload page you can create some code that creates an entry in your DB with the info and a few details, and it's as easy as calling it from there. And from then on you can use $_GET to allow one page to have different links, so your result will be download.php?id=302940 for example, whatever you create your database ID's as. This is sorta difficult just to warn you so there may be a lot you need to read on. php.net should help with alot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.