PHP קוד:
<script type="text/javascript" language="Javascript">
function addtext(text,input)
{
document.getElementById(+input+).value+ = text;
return true;
}
</script>
<img src="mypic.gif" border="0" onclick="addtext('my text here','myeditinput')"/>
<input id="myeditinput" type="text" name="rs" size="35" value=""/>
יכול להיות שיהיה איזה באג קטן...