Antwort
Mist da hat die Formatierung nicht mitgespielt.
Also nochmal (es wird nur der relevante teil der Quelltexte angezeigt)
Chat.php
<form name="chatform" method=post" action="chat.php">
<input type="text" name="eingabe"><input type="submit">
</form>
Smileys.php
:happy <img src="happy.gif" onClick='document.chatform.eingabe.value +=":happy" '>