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:[EMAIL PROTECTED] 
Sent: Thursday, November 04, 2004 12:32 PM
To: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to