Jump to content

Using php to create links for downloading


kreut

Recommended Posts

Hello,

 

I'm trying to use php to have a user upload a file and then, have my site create a link --- I'm ALMOST there.  :)  My last hitch is in creating the link.  From the code below,

echo "this is the current filename: ". $supplemental_file;
  echo '<a href=../../supplemental_files/' . $supplemental_file . '">Supplementary Download</a>';	

 

 

I get:

 

this is the current filename: Complaint.doc

 

But, when I hover over the link, I get:

 

http://localhost:8888/algebra_book/supplemental_files/Complaint.doc%22

 

Any thoughts on the extra %22 ??

 

Thanks so much....

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.