Hi,
Das fügst du in dein Headbreich:
[VIEW]
Code:
<script language="javascript">
function emoticon(text) {
this.document.forms['eintrag'].text.value += text;
}
</script>
[/VIEW]
und das fügst du in dein Formular:
[VIEW]
Code:
<a style="cursor: pointer;" onClick="emoticon(\'[I][/I]\')"><img src="images/bbcodes/i.gif" border="0"></a>
[/VIEW]
und in deinen php code:
[VIEW]
Code:
$text=preg_replace('|\[I\](.*)\[/I\]|Uism','<b>Code:</b><br><table border="0" cellpadding="5"><tr><td bgcolor="#FFFFFF">$kontaktnachricht</td></tr></table>',$text);
[/VIEW]
Du bist doch nach deinem rang ein PHP Expert,
davon hat man gerade nichts gemerkt
den code kannste auch im Forum finden
@Pro1
Ich hoffe ich durfte für ihn den code raus hollen