Jump to content

download file and redirect to a page


Desa0101

Recommended Posts

well way i would do that is have the file info stored in a database then when they press the download button. Send the file information that is stored in the database through the link to the next page.

Then when it gets to the thank you page it will display the message and then query the database for information and download from there.

for example the link would look like this
[code]
<a href = "download.php?id=1>Download</a>
[/code]

Then on the download.php page have something like this
[code]
// Query your database to find the path to the file that is under id 1

// display your thank you message

// download file

[/code]

hope that helps a bit

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.