[cgiapp] Re: Q: Handling unwanted form submissions

2005-07-31 Thread Mark Stosberg
On 2005-07-31, Ron Savage [EMAIL PROTECTED] wrote: Hi Folks How do you handle cases such as the user using the browser's back button and then re-submitting a form they've just submitted? For forms that insert the result into a database: the unique ID can be pre-selected and loaded into a

[cgiapp] Should ValidateRM offer to set up DFV defaults for you?

2005-07-31 Thread Mark Stosberg
Hello, Part of the ValidateRM docs suggest setting up your DFV defaults in your base class. For example: sub cgiapp_init { my $self = shift; # Set some defaults for DFV unless they already exist. $self-param('dfv_defaults') || $self-param('dfv_defaults', {

Re: [cgiapp] Re: Q: Handling unwanted form submissions

2005-07-31 Thread Ron Savage
On Mon, 1 Aug 2005 03:10:47 + (UTC), Mark Stosberg wrote: Hi Mark For forms that insert the result into a database: the unique ID can be pre-selected and loaded into a hidden field in the form. No Doesn't this assume a Postgres-like db vendor with a key field like: default nextval('some