<div dir="ltr"><pre>PLEASE IGNORE MY POST SENT MOMENTS AGO. I WAS NOT FINISHED TYPING.<br></pre><pre><br>I have the following post that gets a user's selection from a <br>page then looks up the corresponding records for the selection and<br></pre><pre>put them into a hash refrence. THat part works fine. How can I then call another page/route<br></pre><pre>with that hash_refrence?<br></pre><pre><br></pre><pre>For example;<br></pre><pre><br> <a name="14f5c012c098f115_14f5b822a85ea9bc_l-6"></a>post '/mypage' => sub { # let user make a selection
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-7"></a>    
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-8"></a>    my $select_id = params->{Sselect};
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-9"></a>    
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-10"></a>    print "\n\nLooks Like They Selected No: $select_id\n\n";
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-11"></a><br></pre><pre>    # look up DB records corresponding to $select_id;<br></pre><pre>    # store them in hash refrence $sel_ref<br></pre><pre>}
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-12"></a>  <br></pre><pre> Now I would like to call template/page sport_add but I would like it to have $sel_ref so <br></pre><pre> that it could put that data into the template sport_add<br></pre><pre><a name="14f5c012c098f115_14f5b822a85ea9bc_l-20"></a>get '/sport_add' => sub {
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-21"></a>
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-22"></a>   template '<a href="http://sport_add.tt">sport_add.tt</a>', {    <br>      'MyTypes' => $sel_ref,  #<br>      'Testing'   => "This is text to test to make sure this will come through", <br>      # to test, use this like <% Testing %> on your template page<br><br>}, {};<br><br>};<br> 
</pre><pre><a name="14f5c012c098f115_14f5b822a85ea9bc_l-24"></a>  
<a name="14f5c012c098f115_14f5b822a85ea9bc_l-25"></a>    
Thanks for any help. Have a great afternoon.<a name="14f5c012c098f115_14f5b822a85ea9bc_l-26"></a></pre></div>