I want to setup a really simple forum type post script and am a bit stuck on the following.
I have a 1 x textarea on and 1 x button
What to happen is when the users enters text and then special pre-defined letter arragments like :-) or :( (smilies basically) on submit the letter arragments is repalced with html code (effectively a find and replace) which will show the smilie image associated with that text.
So the user enters
This is just a test :-)
on submit would become
This is just a test <img src="./images/smilie1.gif">
This is just a test ;-)
= This is just a test <img src="./images/smilie8.gif">
Their may be lots of smilies so i need to be able to enter multiple variables in the function.
Can anyone help and post the complete working proof of concept code?