[dev] (no subject)
Marko Djukic
marko at oblo.com
Wed Feb 26 23:13:34 PST 2003
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.
More information about the dev
mailing list