Re: Re: escaping special charecters upon submit

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Re: escaping special charecters upon submit
Groups: php.general 
Request: Send a blank email to php-general+get-64467@lists.php.net to get a copy of this message
Tried addslashes also urlencode, neither worked... the input is from a comment area in a form...that adds data to a mysql database...the comments contain commas and apostrphes, that when you try to subit, screw up the execution of the insert.... Any help would be very very very very appreciated....driving me nuts. > http://www.php.net/manual/en/function.addslashes.php > That should work fine. > -Andy > <idesign@tampabay.rr.com> wrote in message > news:200108252349.f7PNnP225046@smtp-server1.tampabay.rr.com... > > > I have a form that submits data to a database, works great until > > someome > > > puts in an apostrophe in the comments area...how do i escape this > > > charecter upon > > > insert? > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#64467) next »