Hello Wade,

What's so bad about apostrophes and what are the other "bad characters"
you're referring to?  Have you seen addslashes(), stripslashes()
and magic_quotes_gpc?  As well as strip_tags() and htmlentities().

Regarding replacing characters, have a look at str_replace() as well as
regex functions ereg_replace() and preg_replace().

Regards,
Philip



On Mon, 9 Apr 2001, Wade Halsey wrote:

> Hi
> 
> Ive got a textarea control on a form where a user will enter info, i
> want to enter this info into an interbase db,ive limited the space to
> 200 characters in the text area but need to now eliminate any 
> apostrophes and other bad characters, anyone have a function?
> 
> TIA
> 
> Wade
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to