RE: [PEAR] HTML_Quickform - Validation
| From: | Mike Carter | Date: | Mon, 13 Oct 2003 14:26:02 +0000 |
| Subject: | RE: [PEAR] HTML_Quickform - Validation | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8407@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
>
> <barry@hpfm.biz> wrote :
>
> > Hi all,
> > I'm in a bit a quandry, I have a rather large form the has been
> > running in production now for about a week. It is built with
> > QF/DB_DataObjects.
> >
> > I just upgraded to RH9 on the server (which happens to be my
> > development workstation as well).
> >
> > since then the the validate() function seems to reset the form.
> >
> > I've run a few tests and its seems that validate() is failing as I
> > would expect but I don't get any error messages.
> >
> > I tried puting a debuf statement in the control of the
> script but that
> > simply gave me a "Cannot be displayed error"
> >
> > I had issues with Squid today, after the upgrade to RH9 and
> this may
> > infact be the cause of it all.
>
> Sorry, I can't help much, as there might be many things
> causing the problem outside of QuickForm. Did you change
> anything in your php.ini
> (register_globals) ? You could try a var_dump($_POST) or
> var_dump($_REQUEST) etc. You can also try to output the form
> in an array (toArray renderer) and see what it looks like.
> Also check your QuickForm and HTML_Common versions.
Is it not Squid caching the page. When validation error occurs it goes back
to the original page but maybe its getting cached so not showing the proper
changed content.
Maybe try adding cache expiry headers other page?
Regards,
- Mike
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________