Hi WK,
Thank you very much for the reply. Before I saw this came up with this solution to pass the variable to the other sub/template:
# take them to the add_sport (but with the id no)
hook 'before' => sub {
var S_id => $select_id;
request->path('/sport_add')
};
redirect '/sport_add';
It actually worked but I was wondering if doing it this way with hook and redirect is a bad idea? Also, I was wondering why it's a bad idea to print input from dancer to the console? Does it produce a security vulnerability or is it merely disruptive to dancer?