sory for digging up an old thread, it just so nearly suits what I was looking for!
first up im a bit confused, whats the difference between:
$text = stripslashes($text);
and
$text = addslashes(stripslashes($text))
I had assumed the latter would cancel itself out but seems to do what I thought the first one would do...
secondly, is there any required order in using the following on the same bit of text?
$text = stripslashes($text);
$text = nl2br($text);
$text = trim($text);
EDITED (why am I trying to use trim with those?? to get rid of mystery blank spaces at the end of entries... but its the least important part of the question)
Finally and this is a long shot, is there anyway of mimicking the insertion of things like smilies and formating text using php (I notice the ones in this forum use javascript??)? if so is it simple??
:p
thanks for any and all answers
Luke