Hey all,
I'm getting malformed html when I try to load html forms into a textarea from database. Some of the form elements being loaded into the textarea appear to be mingling with the actual form itself causing the actual form to break and not display properly.
Has anyone had this problem before? Does anyone know the solution?
Thanks
[SOLVED] Loading Text with "<form>" tags int
Moderator: General Moderators
[SOLVED] Loading Text with "<form>" tags int
Last edited by neophyte on Mon Nov 01, 2004 6:24 pm, edited 1 time in total.
Try using htmlentities on the text before putting it between the text area tags.
After the user makes submits the form you might need to use html_entity_decode to convert them back before putting the text back into the database.
After the user makes submits the form you might need to use html_entity_decode to convert them back before putting the text back into the database.