RE: [PHP] Filtering out \ when a ' is user entered?

From: Date: Wed, 27 Jun 2001 13:14:00 +0000
Subject: RE: [PHP] Filtering out \ when a ' is user entered?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55379@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Hello, > > I'm pretty new to PHP but all I've seen of it so far I pretty much > love! > > I've built a web log but when the user enters their data and they > use ' or " (and you know they will) php always shows it from the > included web log as > > \' How can I filter out these backslashes so they don't appear on > the final public viewable page? stripslashes() www.php.net/stripslashes HTH M@ -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBOzncFqW0/zC+QxWwEQIGiQCg+WcEtXTo3uE5EBpLqVZW0lYw9qMAnA1o rJOoQt2zlKDzJaU85Clk4TOL =lBUy -----END PGP SIGNATURE-----

« previous php.general (#55379) next »