in reply to Re^13: Need to know the process to implement perl script into web application server.
in thread Need to know the process to implement perl script into web application server.
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^15: Need to know the process to implement perl script into web application server.
by choroba (Cardinal) on May 24, 2021 at 19:16 UTC | |
by chandantul (Scribe) on Jul 15, 2021 at 02:05 UTC | |
by choroba (Cardinal) on Jul 15, 2021 at 07:28 UTC | |
| |
|