[dancer-users] Template Toolkit Help

Andrew Beverley andy at andybev.com
Tue Oct 6 16:13:28 BST 2015


On Tue, 2015-10-06 at 09:46 -0500, Richard Reina wrote:
> > If I've understood correctly, then I'd just have the one form, and
> > use different submit button names.
> > 
>
> The only thing with the approach of two submit buttons is that the 
> second submit button triggers the required fields that are meant for 
> the first submit button and thus don't allow the submission. Would you 
> happen to know a way around this?

Surely that doesn't matter and you can just ignore those fields?

    if (param 'submit1')
    {
        my $value1 = param 'value1';
    }
    elsif (param 'submit2') {
        ...
        # process second submission
    }




More information about the dancer-users mailing list