I am trying to edit a php shopping cart. I added a new field in the database and a corresponding textarea feild to the form. Whenever I add HTML code into the textarea it seems to be stripped out on update. There already is another field in the form that accepts HTML code in it and properly updates. I'm not too familiar with PHP, is there something native in it that would be stripping the HTML? thanx
Most of the times HTML tags are stripped for security reasons. There is a native function called: strip_tags that might be in use there. There is no "automatic" (php configuration) way to do it. You should try to find the code that handles the fields and see if any function is called on the data. Is it an open-source code? perhaps I can help you further if I'll know the code.
Hey thanks a bunch for the reply mulari ill take a look for the strip_tags code. I thought I duplicated completely the other field that was allowing HTML codes to be inputted. The shopping cart is called Xcart if that helps ... someone may have modded it with a wsywig im not sure it comes with that. Don't spend too much time on it But I appreciate you answering my general PHP question. I really don't know the language. Thanks!