Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This goes to your app module i.e. *.pm file
- #routes to your login page
- any['get', 'post'] => '/user' => sub {
- if (request->method() eq "POST") {
- #retrive all your form inputs and perform the necessary steps such as
- #add them to database or a file
- #render another template that show success or just return success like below
- # template 'user_success.tt';
- return "success";
- } else {
- template 'user.tt';
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement