Maybe I need to clarify a little...or maybe i'm not understanding that what was posted would work for my need...
Lets say we're building a chair from 3 images. On the page is a default image, and 3 radio button menus.
Lets say I have a radio button menu for "top color". It holds values red, ivory, black, orange. I have a gif image of each top in these colors.
I also have a menu called "base color". I have color values black, white, brown for this menu. I have an image of each base (legs) in the three colors.
I have a menu called "arm color", with red, ivory, black, and orange. I have images of the arms of the chair in each color.
I want to use imagecopy() to combine these images (one base, one top, one arm image) into a whole chair. Not a problem, i've figured out how to combine them...I haven't used the gd library before but i'm picking it up okay. The problem is, I need these images to combine and display according to the color combinations chosen in the 3 menus. I have some combinations that would require too many images if they were made individually and then loaded. So, I am trying to create/load them on the spot as the menu choices are submitted.
Am I going to have to have a separate php gd file for each combination, and load the swtch with javascript or ajax? Or is there a way to write one file/function that will detect the submitted choices and create the image from the necessary pictures of the choices...then load it to change the default image on the page? If i'm completely missing what was said in the former solution, feel free to smack me around. My problem is I don't know how to go about writing the code to make it switch the way I need, and I also know absolutely zilch about ajax at this point, as a note.