I have a string that defines a action to be carried out by a image, I want to change that image to an html button. $EXAMPLE_STRING = "<img src='".IMAGE."generic/".IMODE."/search.png' style='width: 16px; height: 16px; vertical-align: top' alt='".LAN_SEARCH_23."' title='".LAN_SEARCH_23."' onclick=\"expandit('en_in'); expandit('en_ex'); expandit('en_ep'); expandit('en_be')\"/>"; PHP:
You would just use a submit input. <input type="submit" onclick="expandit('en_in'); expandit('en_ex'); expandit('en_ep'); expandit('en_be')" /> Code (markup):
this is event handling probably best in js section. the answer is simple, instead of <img> tag use <button>