[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Param 'rm' in CAP::FillInForm


On 9/16/05, Wojciech Pietron <suppressed> wrote:
> It looks like in my configuration CAP::FillInForm has problems with filling
> 'rm' parameter. H::FillInForm hasn't such problems. Is it the case in your
> environment either? I didn't explore CAP::FillInForm code, hoping Michael
> Graham will take care:-)

>From the docs for the FillInForm plugin:
------
By default, the mode param (usually 'rm') of every data source will be
ignored. This prevents accidently clobbering your run mode for the
next page, which may be stored in a hidden field.
------

This is a good idea, as your runmodes should not be dynamically
assigned.  When you create a form in your template, the destination
runmode should be hard coded.  This feature is put in place so that
you don't accidentally clobber the runmode that is there with the
value that most likely already exists in the CGI.pm object if that is
being used to fill out the form.

If you really need to dynamically fill out the runmode, then do it
directly in the template with a template variable, instead of letting
FillInForm do it.

Cheers,

Cees

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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.