Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

capture mouse click in php

I am developing a website where I have come across a problem. The thing is, the user has to select one image out of the 3 images that I am displaying. How to capture that click and store that particular clicked image in the database? My sql is the dB.

Thanks in advance

like image 818
Aditya Goenka Avatar asked Dec 01 '25 18:12

Aditya Goenka


1 Answers

PHP (typically) has nothing to do with graphical user interfaces. The user interface you are probably talking about is HTML in the browser. The HTML way of doing this is a checkbox/radio button in a form with a submit button. Possibly the images can be the submit button instead. For something more dynamic, you need to use Javascript.

like image 111
deceze Avatar answered Dec 03 '25 07:12

deceze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!