PDA

View Full Version : PHP help!



Marauder
14th February 2004, 21:20
Ok I've been doing a bit of hobbie programming and here is a little prob. I've done a news page which uses text files.. When I post news up and include the word "I've" it saves it as "I\'ve" Does anyone know of a way of getting rid of the \ with out writing a filter for the file..

Thanx in advance..

www.physsicz.co.uk

JonnyThunder
14th February 2004, 23:18
yeah. Use stripslashes function. You may wanna use the htmlspecialchars function somewhere in the validation too, otherwise you'll get funny stuff happening.

You can use stripslashes when you go to display is on screen. It gets put in there cos of the 'magicquotes' PHP ini setting.