Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[PEAR][QUICKFORM] Freeze
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

Report this thread to moderator Post Follow-up to this message
Old Post
Obsessed
05-27-05 01:56 PM


Re: [PEAR][QUICKFORM] Freeze
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
05-27-05 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.