Ok i was just wondering if anyone would like to help me make my guestbook script better by coding the smilies? dont worry i'll show you how... ok so first thing you have to do is get the smilies and put it into a folder use "smilies" next create smilies.html and put the smiles images and their codes example
then create smilies.php and put the replace codes that will replace codes in the message with smilie images example
just repeat the same steps to add all the other smiley codes and smilies... anyone interested?
PHP Code:
<img src="smilies/wtf.png"/><br/>code: -wtf-<br/>
PHP Code:
<?php
$_POST["message"] = str_replace('-wtf-','<img src="smilies/wtf.png"/>',$_POST["message"]); ?>
Comment