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.... Quote Link to comment 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>'; Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.