Re: apostrophe checks
| From: | Renze Munnik | Date: | Mon, 09 Apr 2001 09:01:07 +0000 |
| Subject: | Re: apostrophe checks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47748@lists.php.net to get a copy of this message | ||
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
Try:
ereg_replace();
(http://www.php.net/manual/en/function.eregi-replace.php)
or
preg_replace();
(http://www.php.net/manual/en/function.preg-replace.php)
--
* R&zE:
***************************
** Renze Munnik
**
** E: renze@datalink.nl
** M: +31 6 218 111 43
***************************