Wyndru
Diamond Member
I'm trying to pass an image variable from one page when a user clicks on it into another html page. Basically I have a bunch of thumbnails that I want their full size versions to be able to open in another page without needing to create a ton of different html pages. I know I could just open the image directly in the browser, but I want the format of the resulting page to be consistent.
Is this a simple thing to do, and is it easier to do with javascript or PHP? I doubt it's possible with only HTML, if it is that would be great. I have some experience with javascript, but a lot of sites are suggesting php and the code looks like it requires a server side app to process it. Is this true? I'm hosting the site myself, and I only have apache configured for the basics, I don't know if it handles php requests out of the box.
[EDIT] nvm, I'm all set, I just used javascript: self.location.search.substr(1), and anything after the ? in the URL I assigned to a variable I could use.
Is this a simple thing to do, and is it easier to do with javascript or PHP? I doubt it's possible with only HTML, if it is that would be great. I have some experience with javascript, but a lot of sites are suggesting php and the code looks like it requires a server side app to process it. Is this true? I'm hosting the site myself, and I only have apache configured for the basics, I don't know if it handles php requests out of the box.
[EDIT] nvm, I'm all set, I just used javascript: self.location.search.substr(1), and anything after the ? in the URL I assigned to a variable I could use.
Last edited: