Thank you, Nate. I'll be using the function you suggested. Costas
On 10/20/07, Nate Althoff <[EMAIL PROTECTED]> wrote: > > try the stripslashes() function on the output. Depending on how you're > inserting it to the db, it might be required to have the slashes on it. > But > if you use stripslashes($elem) on the output it'll go away. > > Nate > > > -----Original Message----- > From: [email protected] <php-list%40yahoogroups.com> [mailto: > [email protected] <php-list%40yahoogroups.com>]On Behalf > Of costasb5 > Sent: Saturday, October 20, 2007 1:21 PM > To: [email protected] <php-list%40yahoogroups.com> > Subject: [php-list] _POST > > Hi fellow php'ers, > > I am developing a page and i have the following problem: > > In a form, i have a textarea element called "elem". When someone types > in there the string > > I've gone > > and submits, then: > 1. in my local, Easyphp implementation, > print $_POST['elem']; > correctly produces > I've gone > > 2. in my live implemention with a web hosting company: > print $_POST['elem']; > produces the altered > I\'ve gone > > (watch the backslash). Is there any way that I can get rid of that > extra backslash? It gets stored in the database, displayed everywhere, > just can't make it go away. I've tried htmlentities to filter the > $_POST['elem'], doesn't work. > > Anyone hjas seen this problem before? Easyphp does it right, as > expected. Why does my web hosting company mess it up? > > Thank you in advance, > Costas > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.488 / Virus Database: 269.15.3/1081 - Release Date: > 10/19/2007 > 5:41 PM > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]
