> Interestingly, htmlentities doesn't seem to work for me as > > htmlentities($a) is not equal to htmlentities($_post['q1']) This is probably because htmlentities() turns " into " and not ’ ’ (on my browser at least) displays as a curly apostrophe (single close quote), not as a doublequote. David