Re: QuickForm Clear posted fields
| From: | Karlos Zafra | Date: | Tue, 07 Feb 2006 07:57:07 +0000 |
| Subject: | Re: QuickForm Clear posted fields | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22834@lists.php.net to get a copy of this message | ||
If you're using quickform_controller, this would be useful:
$page->controller->container->(true);
2006/2/7, cwhisperer <cwhisperer@vo.lu>:
>
> ok, this works fine, thx :)
>
> Justin Patrin wrote:
> > On 2/6/06, cwhisperer <cwhisperer@vo.lu> wrote:
> >> It is the same php script that shows the form and insert resp. update
> >> the data...
> >>
> >> I guess I have to do something in
> >> if($form->validate()){
> >> //insert resp. update
> >>
> >> //clear the posted fields
> >> }//endif
> >>
> >> but, how...?
> >>
> >
> > Don't. Just redirect back to itself.
> > header('Location: '.$_SERVER['REQUEST_URI']);
> > or similar.
> >
> >> Justin Patrin wrote:
> >>> On 2/6/06, cwhisperer <cwhisperer@vo.lu> wrote:
> >>>> Hi,
> >>>>
> >>>>
> >>>> After having submitted a form, I want to clear the values entered in
> the
> >>>> form. How do I do that?
> >>>>
> >>> I suggest redirecting back to the form.
> >>>
> >>> --
> >>> Justin Patrin
> >>>
> >
> >
> > --
> > Justin Patrin
> >
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>