Jump to content

CREATING A POP-UP DOWNLOAD PAGE


janty678

Recommended Posts

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

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>

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.