Re: Quick - preview of submitted values

From: Date: Fri, 02 May 2003 22:29:47 +0000
Subject: Re: Quick - preview of submitted values
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5206@lists.php.net to get a copy of this message
On Fri, 2003-05-02 at 23:32, Tommy Ipsen wrote: > Hi everybody > > I'm using QuickForm for a Guestbook application at my website. It has > support for graphical smilies in the sense that the text-smilies in the > message is converted to graphical smilies when viewing the message > normally. I would like to be able to offer the user a preview of his/her > message before finally submitting the message! > > All in all something like the follwing functionality: > > if !form_validate > show_form with "Preview message" and "Submit message" submit buttons > else > if preview > show preview of the message with "Modify message" and "Submit > message" buttons > else > process message > endif > endif > > And the following connections between the different states: > > "Normal Form" -> "Preview Message" (Through Preview) > "Normal Form" -> "Submit Form" (Through Submit) > > "Preview Message" -> "Normal Form" (Through Modify) > "Preview Message" -> "Submit Form" (Through Submit) > > "Submit Form" -> "Processing" (If validated!) > > I'm looking for ideas on how to present a preview and being able to go > back to the form to modify the message - I have an idea that "freeze()" > might help me in this regard, but I haven't used it before! > You'll probably need to use a combination of freeze and filters to display with the smilies in place, although I can't really offer any more help than that :P Jon > Hope someone can help me. > > Cheers, > > Tommy Ipsen -- Jon Wood jon@jellybob.co.uk www.godaintpants.co.uk/users/Jellybob "Experience is something you don't get until just after you need it."

« previous php.pear.general (#5206) next »