RE: [PHP] Question: Validation on a text field

From: Date: Thu, 04 Nov 2004 20:44:15 +0000
Subject: RE: [PHP] Question: Validation on a text field
Groups: php.general 
Request: Send a blank email to php-general+get-201220@lists.php.net to get a copy of this message
Assuming that the pasting is done into a <textarea></textarea> on an html form, I believe the Textarea will limit the past to just "text" characters. I suppose this could be dependent on the browser. I don't know of any html input control that would allow "blob" (binary) values. I also don't know if MySQL will police things input to a text column to make sure they are valid ascii text characters. Warren Vail -----Original Message----- From: Stuart Felenstein [mailto:stuart4m@yahoo.com] Sent: Thursday, November 04, 2004 12:32 PM To: php-general@lists.php.net Subject: [PHP] Question: Validation on a text field I have a field that is an actual Mysql Text column, aka like a blob. I'm wondering if doing a standard validation that checks for characters outside of the alphanumeric range is enough. I'm imagining some users will cut and paste from a Word or PDF doc into the field. I've done it myself and no weird characters are showing up. Any thoughts ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#201220) next »