Re: text area with quotes

From: Date: Thu, 01 Aug 2002 01:49:32 +0000
Subject: Re: text area with quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110602@lists.php.net to get a copy of this message
check out strip_slashes() or stripslashes() [can never remember which one!!] in the manual. Justin French on 01/08/02 5:50 AM, Nathan Kline (mitb@mitb.net) wrote: > this seems so obvious yet it is giving me problems. > > I have a text area in a form that is passed to a php page to be > written to a database. first though It displays the contents of the > form in a preview page. then if everything is good the user click the > button and it write to the DB. I pass the contents of the text area > straight to the next page (i.e. $form_item_name) so i never mess with > the variable. > > now for the problem. > > when it displays the variable it adds the escape character (\) to any > ' or " in the text. if I resend the same document it adds more. how > do i get it to display 's and "s in a variable without php adding the > \?? >

« previous php.general (#110602) next »