Riparian Posted June 17, 2013 Share Posted June 17, 2013 Hi. Can someone give me a definitive answer to this question is this valid code in all browsers (or the majors anyway) to submit a form <input name="Process1" type="image" src="img/progress.png" /> A few years ago I had troubles with this method so I am wondering if it is acceptable now. Cheers and thanks Quote Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/ Share on other sites More sharing options...
PravinS Posted June 17, 2013 Share Posted June 17, 2013 (edited) you can use image tag instead of input tag and can submit using javascript <img src="img/progress.png" onclick="document.FORMNAME.submit();"> Edited June 17, 2013 by PravinS Quote Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/#findComment-1436318 Share on other sites More sharing options...
Zane Posted June 17, 2013 Share Posted June 17, 2013 Quote Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/#findComment-1436320 Share on other sites More sharing options...
Solution Riparian Posted June 17, 2013 Author Solution Share Posted June 17, 2013 Thank you Zane and Pravins..... much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/#findComment-1436332 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.