Hi there
Am I right in thinking that the stripslashes() function only works once on the same bit of text in the same browsing session?
I've a text box on my site where people enter in comments then can preview them (on another page) before submitting them to my database.
I use
It's similar to when you preview your post before submitting on this forum. The problem I find is that stripslashes() works the first time around but if the person wants to amend what they've written and preview a second (or third) time etc. stripslashes() doesn't work.PHP Code:<?php
$TheComment = stripslashes($_POST['comments']);
echo $TheComment;
?>
For example I'm appears as I\'m etc.
If so (it only works once) is there any work around?
many thanks
Juan.





Bookmarks