close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Download file using File Manipulation

Thread began 3/15/2022 11:07 am by msmoose2400634 | Last modified 3/18/2022 6:19 am by Ray Borduin | 443 views | 2 replies |


Download file using File Manipulation

I have a dynamic recordset from a recordset named rs_league_docs which displays a list of the league documents; I want the visitor to be able to click a league document name and have the actual .pdf downloaded. I have read through the File Manipulation and I am not understanding the process. I have copied and pasted the code; but also attached a screenshot and the actual .php page. (As always thank you for your assistance)

<table width="195" border="0" cellpadding="5">
if(($_SERVER["REQUEST_METHOD"] === "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)){
WA_DFP_DownloadFile("WA_DownloadResult1", "LGADocs/docs/", "".($rs_leagueDocs->getColumnVal("docname")) ."", "[FileName]", false, false, false, "", "", "", "");
<td><h3><?php echo ($rs_leagueDocs->getColumnVal("docname")); ?></h3></td>

Attached Files
Sign in to reply to this post

Ray BorduinWebAssist

Create a blank page with the file download behavior.

Link to the page where you want to have the download file on your site and pass the id of the associated record in the url.

On the download page, add a recordset that filters by the id you passed in and apply the download server behavior that can get the file location for the download from the recordset.

Sign in to reply to this post
Did this help? Tips are appreciated...


Well again you are my hero, thank you. I have to do a little bit of clean up visually, but it worked like a charm. One or two more hurdles and I think I can finish re-writing the website, now that I have some additional knowledge without having to depend on you so much. But again thank you for all of your support and assistance. -Karen

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...