0rangeFish Posted December 11, 2014 Share Posted December 11, 2014 Is it possible for a clickable image to pass to a php page? It can lead to a linked web page, so can it be like a submit button on a form and pass to the $_POST in php? Quote Link to comment https://forums.phpfreaks.com/topic/293019-clickable-image-in-html-pass-to-php/ Share on other sites More sharing options...
Ch0cu3r Posted December 11, 2014 Share Posted December 11, 2014 Yes you can use an image as a submit button. Quote Link to comment https://forums.phpfreaks.com/topic/293019-clickable-image-in-html-pass-to-php/#findComment-1499278 Share on other sites More sharing options...
Barand Posted December 11, 2014 Share Posted December 11, 2014 Note that when an image input is clicked, the x,y coordinates of the click in the image are sent. So if you have <form> <input type='image' name='imageButton' src='myimage.jpg'> </form> then this is sent back to your page Array ( [imageButton_x] => 4 [imageButton_y] => 11 ) Quote Link to comment https://forums.phpfreaks.com/topic/293019-clickable-image-in-html-pass-to-php/#findComment-1499363 Share on other sites More sharing options...
CroNiX Posted December 11, 2014 Share Posted December 11, 2014 Have you tried just setting the background of your submit button to be an image using css? Quote Link to comment https://forums.phpfreaks.com/topic/293019-clickable-image-in-html-pass-to-php/#findComment-1499367 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.