kreut Posted March 5, 2011 Share Posted March 5, 2011 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.... Link to comment https://forums.phpfreaks.com/topic/229674-using-php-to-create-links-for-downloading/ Share on other sites More sharing options...
cunoodle2 Posted March 5, 2011 Share Posted March 5, 2011 You were just missing one set of quotes.. echo "this is the current filename: ". $supplemental_file; echo '<a href="../../supplemental_files/' . $supplemental_file . '">Supplementary Download</a>'; Link to comment https://forums.phpfreaks.com/topic/229674-using-php-to-create-links-for-downloading/#findComment-1183259 Share on other sites More sharing options...
kreut Posted March 5, 2011 Author Share Posted March 5, 2011 Thanks for the quick AND easy solution. Link to comment https://forums.phpfreaks.com/topic/229674-using-php-to-create-links-for-downloading/#findComment-1183296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.