Page 1 of 1

[SOLVED] Loading Text with "<form>" tags int

Posted: Mon Nov 01, 2004 4:41 pm
by neophyte
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

Posted: Mon Nov 01, 2004 6:01 pm
by d_d
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.

Posted: Mon Nov 01, 2004 6:24 pm
by neophyte
You da man! Thank you!