Re: apostrophe checks
| From: | Philip Olson | Date: | Mon, 09 Apr 2001 09:15:30 +0000 |
| Subject: | Re: apostrophe checks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47749@lists.php.net to get a copy of this message | ||
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
>