Click to See Complete Forum and Search --> : Removing Slashes From Guestbook


lonogod
09-20-2005, 01:04 PM
Hey everyone.

I have a guestbook that works perfectly (thanks to sheldon and R. Noon). The only problem is that when the entry displays on the guestbook it has slashes in front of single quotes (') and double quotes ("). I've been going into the file directly to remove them and that's been working, but is there a way to make it so that I don't have to do that manually? Thanks.

lonogod

bokeh
09-20-2005, 02:17 PM
Just strip them out when the entry is posted
$guestbook_text = stripslashes($_POST['guestbook_text'];

lonogod
09-20-2005, 02:18 PM
Where do I put this in my page? Also, which page do I put it on? Thanks bokeh.

lonogod

bokeh
09-20-2005, 02:23 PM
Post the code that processes the form!

lonogod
09-20-2005, 02:25 PM
It should be the same as the code on the other thread.

lonogod

felgall
09-20-2005, 02:56 PM
Which other thread? Unless you provide either the code or a link to the other thread how is anyone supposed to know what you are talking about.

lonogod
09-20-2005, 05:16 PM
bokeh knew what I was taling about. He helped me out. Thanks though.

lonogod