ShivaGupta Posted January 19, 2014 Share Posted January 19, 2014 want to add image in this buttun echo '<input type="button" value="Back" onClick="history.go(-2);return true;">'; Quote Link to comment https://forums.phpfreaks.com/topic/285496-llitile-help-plz/ Share on other sites More sharing options...
ryanmetzler3 Posted January 19, 2014 Share Posted January 19, 2014 Do something like this: <input type="image" src="rainbow.gif" name="image" width="60" height="60"> It is technically not a button, but you can use the src attriubute for you image. Then use the onClick function to direct the user wherever you want. Quote Link to comment https://forums.phpfreaks.com/topic/285496-llitile-help-plz/#findComment-1465768 Share on other sites More sharing options...
sasa Posted January 20, 2014 Share Posted January 20, 2014 you can use <button type="submit"><img src="img_url"></button> Quote Link to comment https://forums.phpfreaks.com/topic/285496-llitile-help-plz/#findComment-1465857 Share on other sites More sharing options...
Ch0cu3r Posted January 20, 2014 Share Posted January 20, 2014 Or leave the html as it is and use CSS to assign an image it it input.myButtonClass { background: url('path/to/image.jpg') no-repeat; width: 150px; # the width of the image in pixels height: 50px; # the height of the image in pixels } Quote Link to comment https://forums.phpfreaks.com/topic/285496-llitile-help-plz/#findComment-1465858 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.