Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I'm creating a page that let people make newsposts. After the first submit I want them to get a page with a preview of their submitted item, and then they can submit it or go back and alter it. I'm displaying the preview by using freeze() on my form. This works very nicely but I only have on problem. If users used html in their post to give it some layout, I'm getting those tags in the preview as text instead of them 'working' if you know what I mean. Is there any way to display correct html in form elements while in frozen state? Or any good alternative for this problem? Thanks in advance
Post Follow-up to this messageOn 5/20/05, Obsessed <Obsessed@dayofdefeat.be> wrote: > Hi, >=20 > I'm creating a page that let people make newsposts. > After the first submit I want them to get a page with a preview of their > submitted item, and then they can submit it or go back and alter it. >=20 > I'm displaying the preview by using freeze() on my form. > This works very nicely but I only have on problem. > If users used html in their post to give it some layout, I'm getting > those tags in the preview as text instead of them 'working' if you know > what I mean. This is as it should be. The text is run through htmlentities to make sure that what you typed is what you see. This is also done in order to stop XSS attacks. If you want to display the posted data as HTML and not text, you'll have to output it yourself. >=20 > Is there any way to display correct html in form elements while in > frozen state? > Or any good alternative for this problem? >=20 > Thanks in advance >=20 --=20 Justin Patrin
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.