Page 1 of 1

Re-writing a page with PHP

Posted: Thu Aug 20, 2009 9:06 pm
by zunebuggy
I want to have a web page that was created with a php script. On the page, I want to have several thumbnails. The thumbnails are actually image links and when a user clicks on them, it re-writes (or refreshes) the web page but uses a larger version of the thumbnail as the background image. In other words, the thumbnails are samples of background images and by clicking a thumbnail the user dynamically changes the background image. I am very new to php and this is probably very basic. The only way I can think of doing this would be opening a new page every time a thumbnail is clicked but I don't want this. I searched here but I could not find exactly what I was looking for.
Thank you.

Re: Re-writing a page with PHP

Posted: Thu Aug 20, 2009 9:43 pm
by zunebuggy
I am using css. That is not the issue. The issue is getting php to rewrite the page after the thumbnail is clicked. Do I have to make the linked images submit buttons? If so there are MANY thumbnails, so how do I have multiple submit buttons. I wanted to just have simple image url links that all go to the same php but pass along, for example, the thumbnail image name as a variable and the php script uses this variable to determine what html/css to write. I want the user to click the thumbnail, which will call my php script and based on an if... then will determine which background image to use and write the html/css accordingly.