Hello Sir, I have written separate function for the other lable but its still targeting to first function. is this possible for you let me know where i am wrong here?
Please check below details for webapp.pm , query.tt .help me if possible.
query.tt
<form id="f1" method="post" action="/"> <style> body { background-color: #ABBAEA; } div { height: 200px; background-color: #FBD603; } </style> <body> <div> <p> Report Automated Ap +plication </p> <label for="APPID">Application ID</label> <input id="text" name="APPID"> <label for="date">Time in Hours</label> <input id="date" name="date"> <label for="Email">Recipient Email</label> <input id="email" name="Email"> <button>Submit</button> </div> <div> <input type="radio" name="UsersList"> <label for="UsersList">Users-List</label> <label for="Email">Recipient Email</label> <input id="email" name="Email"> <button>Submit</button> </div> </body> </form>
webapp.pm
package webapp; use Dancer2; #use Dancer::Plugin::RequireSSL; use Op; use Op1; our $VERSION = '0.1'; #require_ssl(); get '/' => sub { template 'query' => { 'title' => 'webapp' }; }; post '/' => sub { my $r = Op::result({APPID => param('APPID'), date => param('date'), Email => param('Email')}); template result => { title => 'webapp', result => $r } }; post '/' => sub { my $r2 = Op1::result2({UsersList => param('Users-List'), Email => param('Email')}); template result => { title => 'webapp', result2 => $r2 } }; true;
In reply to Re^14: Need to know the process to implement perl script into web application server.
by chandantul
in thread Need to know the process to implement perl script into web application server.
by chandantul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |