Jump to content

Selecting an image...


Gamerz

Recommended Posts

Hello,

You know how the

<select name="name">
<option>TEXTHERE</option>

works right?

 

Okay..so instead of the TEXTHERE, I want to display an image for people to select, NOT a link. When clicked, the image will be selected and highlighted to show that it is selected.

 

I also want to lose the dropdown menu...so it will just be several images that I display without the dropdown menu. How would I do this?

Link to comment
https://forums.phpfreaks.com/topic/185945-selecting-an-image/
Share on other sites

What Thorpe said.

 

Although you will have to either add some type of form input to indicate that the image has been selected. I would add a little checkbox beside each image. If you want to add some javascript overtop to make it fancy, then you can hide the checkboxes with javascript, and when an image is clicked on, have the javascript add the check to the hidden checkbox.

Link to comment
https://forums.phpfreaks.com/topic/185945-selecting-an-image/#findComment-981973
Share on other sites

  • 3 weeks later...

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.