RE: [PHP-DB] Question: Copy and paste text into mysql text column

From: Date: Tue, 19 Oct 2004 21:06:41 +0000
Subject: RE: [PHP-DB] Question: Copy and paste text into mysql text column
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36923@lists.php.net to get a copy of this message
> I have a textarea field that will allow users to copy > and paste text into , it might be plain text, or it > might come out of word. > I'm wondering what type of validations I should > perform on this field ? > > Any suggestions / ideas ? Hi Stuart, Check out the strip_tags and mysql_escape_string commands. They allow you to filter misc. code that might be imbedded in the data and also prepare the data for insertion into the database (if you're going to store it). Ed Lazor, President http://RPGStore.com Up to 50% off. Over 20,000 items in stock

« previous php.db (#36923) next »