Re: QuickForm problem
| From: | Cesare D'Amico | Date: | Fri, 02 Jan 2004 18:52:18 +0000 |
| Subject: | Re: QuickForm problem | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9918@lists.php.net to get a copy of this message | ||
Alle 19:18, venerdì 2 gennaio 2004, Alexey Borzov ha scritto:
> I suspect that you are passing a parameter named 'action' or 'azione'
> to the script, and when you add the field to the form its value gets
> updated to the (presumably empty) submit value. This is expected
> behaviour.
D'oh! I just saw that I turned on register_globals to develop a (sigh)
nuke-based site for a client (it's normally off)... I do pass a
paramenter named azione to the script, so you're probably right.
> The solution is either to use setConstants() or to pass a special
> parameter to QuickForm's constructor that will check whether the form
> was actually submitted.
I'll check the source/examples for a better understanding of QF.
Thanks
ce
PS: by the way, QF is really GREAT! Thanks a lot for this wonderful
piece of code :)
--
Cesare D'Amico - boss (@t) cesaredamico (dot) com
http://www.cesaredamico.com
To err is human, to forgive is not our policy.