Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How to retain popup_menu selection between form submission

by Anonymous Monk
on Jul 25, 2014 at 07:35 UTC ( [id://1095001]=note: print w/replies, xml ) Need Help??


in reply to How to retain popup_menu selection between form submission

Please help me on how can I retain that Case-I selection as well when the page is submitted in Case-II and reloaded.

Its simple, save the state somewhere,

my $yo = LoadUserSession($user); ... if( $action == 'page-12-form1' ){ $yo->save_param( $query, [qw/ form1-ro form1-sham form1-bo /] ); } elsif( $action == 'page-12-form2' ){ $yo->save_param( $query, [qw/ form2-ro form2-sham form2-bo /] ); }

Now the server knows about the user and what forms hes submitted, and you can request this information at any time

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1095001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-03-28 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found