On 2005-12-14, Michael Gwin <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm having an issue with Data::FormValidator changing the hidden run
> mode field in one of my pages. The template for this page includes two
> forms, each with its own hidden run mode field, 'login' and
> 'check_registrant_data', respectively. Upon entering
> 'check_registrant_data', some form data gets checked, and if any of it
> is invalid, the same template is loaded and displayed again. However,
> at this point, the runmode field for the first form, 'login', has
> changed to 'check_registrant_data', so the first form doesn't work
> anymore. 
>
> I assume this is because both fields have the name "rm" and DFV has a
> problem handling different values when it generates $err_page (?)
>
> Is there any way I can get around this?

Yes. Options include:

 - Put the run mode in PATH_INFO. See the docs of mode_param() for
   details. 

 - I assume you are using ValidateRM. There's an option to pass
   arguments to HTML::FillINForm.  Sounds like you need 'ignore_fields'
   there. More details in the FiF docs. 

    Mark


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to