Jump to content

Picture box that changes based on input


anauj0101

Recommended Posts

I am not completely new to PHP but have only recently been creating anything of substance. 

 

What I want to do is make a webpage that has a box with an image, below that image a list of files from a directory.  When the user clicks one of the files, display that in the box with the image.

 

I look forward to any help that can be given, thanks.

Link to comment
https://forums.phpfreaks.com/topic/160130-picture-box-that-changes-based-on-input/
Share on other sites

you will want to look into AJAX or jquery.

 

basically the theory is that you have an empty DIV on your main page.  The links below this div will generate a javascript query to a backend page to process the link and display the relevant image in the div on the first page.  All without reloading the main page at all

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.