[dev] (no subject)
marioy at upb.edu.co
marioy at upb.edu.co
Thu Feb 27 19:48:43 PST 2003
Mensaje citado por Marko Djukic <marko at oblo.com>:
> Quoting Chuck Hagenbuch <chuck at horde.org>:
>
> > Quoting marioy at upb.edu.co:
> >
> > > - How can I fill a form with default values and in some way be able to
> > > identify that the user hasnt submited the form? The problem arises when
> I
> > > fill the $vars object with data and then execute $form->validate() (it
> > > always return true because of the default values). The use of tokens
> hasnt
> > > been any help because the form has to be submited various times in a
> short
> > > period of time by the same person.
> >
> > But every time you regenerate the form (in the code), they get a fresh
> > token. You can also check for 'formname' in $vars (or in $_GET and $_POST,
> > if you like).
>
> or you can test for ->isVarSet('submitbutton')... just to have another
> method.
>
I like this one... a lot.
-------------------------------------------------
Correo enviado por el servicio de correo Web
de la UPB http://www.upb.edu.co
More information about the dev
mailing list