Ok guys/gals, I'm a tad confused when it comes to quotes in database driven pages.
I'm building a site for a furniture business and one of their products are TVs let's say.
On my INSERT Record page in a (Product Title)text field I enter:
JVC 56" Television
This gets inserted just fine and I can display this Product Title on the products page just fine. The problem seems to be when I want to EDIT this information.
On my EDIT Record page, there is of course a text field the Product Title should appear in so I can edit it. The problem is that the text field only displays the Product Title up to the quotation mark like this:
JVC 56
But this same Product Title will appear properly if displayed in a "Text Area"!?!?!
Why won't this Product Title appear properly in a Text Field, but will display properly most other places?
I used htmlspecialchars() which seems to have fixed the problem, but I'd rather not have to do this to every Text Field that could have quotes. Is there a global solution to this, or maybe someone can just explain how to handle quotes better.
Thanks all!
Peter