[PHP] apostrophe checks

2001-04-09 Thread Antti Boman
> 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 [snip] Also remember that you must never trust what you get from the browser. Make the script check out that the input i

Re: [PHP] apostrophe checks

2001-04-09 Thread Christian Reiniger
On Monday 09 April 2001 08:38, you 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, an

Re: [PHP] apostrophe checks

2001-04-09 Thread Philip Olson
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 f

Re: [PHP] apostrophe checks

2001-04-09 Thread Renze Munnik
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 functio

[PHP] apostrophe checks

2001-04-08 Thread Wade Halsey
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