Originally posted by rwfresh
Hi All,
Are there are any functions to handle HTML in form results for form processing? I have a few fields in a form that require alot of html/characters which i need to insert.. The html never makes it into the DB because of the characters in the field.. I need something to prepare the input and then strip the added characters once i select them.. Thanks!!
rw [/B]
Not quite clear what you're after here (there's no reason that springs to mind that html in text would cause it not to be entered into a database). There are a bunch of functions designed to protect or eliminate HTML markup from being rendered inappropriately; [man]htmlspecialchars[/man], [man]htmlentities[/man], and [man]strip_tags[/man], for example.