nomadsoulkarma Posted July 25, 2018 Share Posted July 25, 2018 (edited) Images are uploading into the upload folder no problem and the links show up on the image.php page. But the links do nothing. I've re read the chapter and on page 369 you stress that nothing can be sent to the browser before using the header function. I'm just not understanding this topic yet. I hope someone can look at this? Here is my show_image.php and image.php. All the files and the upload directory are in the root where they should be. However unavailable.png DOES show up in the browser. Must the images be outside the root directory as suggested? could that be the problem? Thanks in advance. show_image.php images.php Edited July 25, 2018 by nomadsoulkarma spelling Link to comment Share on other sites More sharing options...
Larry Posted July 25, 2018 Share Posted July 25, 2018 When you say "the links do nothing", what do you mean? Do you mean that you click on them and nothing happens? Or you click on them and the popup appears but there's not content in there? Could you also clarify where all the files are located on your file system? Link to comment Share on other sites More sharing options...
nomadsoulkarma Posted July 26, 2018 Author Share Posted July 26, 2018 Thanks Larry, I fixed it. Yes at first I clicked the links and nothing happened so I tried many things and what worked was changing ../images to ./images and I didn't have a js folder so when I made a js folder and put the javascript function in it it worked. Link to comment Share on other sites More sharing options...
Larry Posted July 28, 2018 Share Posted July 28, 2018 Glad you've got it working and thanks for letting us know the solution! Link to comment Share on other sites More sharing options...
Recommended Posts