janty678 Posted June 20, 2010 Share Posted June 20, 2010 Hello I'm new to the forum. Anyways I was wondering how can I create a pop up download page for my site. I want when users click a link, a pop up window will occur with the download page. But I want all download pages to be unique, hence the pages would need to have an id i guess. Also the download pages would not have files, but unique links to free hosting sites, (for example mediafire, zshare etc). Can anyone help me with this? Here is a site that has something similar. http://officialpsds.com/Film-Strip-Jo-PSD48830.html - Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/205354-creating-a-pop-up-download-page/ Share on other sites More sharing options...
rami103 Posted June 20, 2010 Share Posted June 20, 2010 you can use javascript for this <script type="text/javascript" charset="utf-8"> function DownloadItem(id){ var id = id; window.open("download.php?id="+id+"", "myWindow", "status = 1, height = 315, width = 380, resizable = 0" ) } </script> <a href="#" onclick="DownloadItem(<?=$id?>);">Download NOW</a> Link to comment https://forums.phpfreaks.com/topic/205354-creating-a-pop-up-download-page/#findComment-1074738 Share on other sites More sharing options...
janty678 Posted June 20, 2010 Author Share Posted June 20, 2010 - Would the download pages be created automatically? - Also where do I add the hosting sites download links? Link to comment https://forums.phpfreaks.com/topic/205354-creating-a-pop-up-download-page/#findComment-1074750 Share on other sites More sharing options...
Digma Posted June 21, 2010 Share Posted June 21, 2010 What Rami103 showed you here is a way to produce a pop-up on click which then calls file x.php and adds the id of the content entry that serves as reference to your database. You will still have to write the code that extracs information from your database and that excutes the download. Link to comment https://forums.phpfreaks.com/topic/205354-creating-a-pop-up-download-page/#findComment-1074778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.