[dancer-users] Template Toolkit Help

Richard Reina gatorreina at gmail.com
Tue Oct 6 18:44:50 BST 2015


2015-10-06 10:13 GMT-05:00 Andrew Beverley <andy at andybev.com>:

> 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
>     }
>
>
Andy,

Thanks for the help. I think just for my one quirky reasons I am going to
use two forms in the template. Hope that an okay way to do it. Let me know
if you think it could be problematic.

Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20151006/2f5fb7ca/attachment.html>


More information about the dancer-users mailing list