have a look at get_html_translation_table htmlspecialchars() , htmlentities() and get_html_translation_table.
these function do all the work for you without reinventing the wheel. Steve "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi there...I'm new to php coming from an asp background. I have a form with > two textarea form elements which is eventually inserted into a sqlServer db. > Everything works great, but one small problem How do I work around > apostrophes within the textareas? I keep getting errors when they are > present and no errors when I remove all of the apostrophes. > > Thx in advance, Joe > > -- 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]