I’m trying to set a parameter to be passed to the next page via the param function.
I’ve tried
param(-name=>'foo',-value=>'the value');
param(-name=>'fooz',-values=>['an','array','of','values']);
param('foo3', 1);
My script redirects to another which checks for all (param), but no luck. The CGI manpage implies this should “just work”. What am I doing wrong?
Thanks!
There are a few ways to do this.
Build your redirect URI with the help of the URI::QueryParam methods.
Save the state of the parameters to a file and then load the state of that file from the redirected page.
Do the redirect through JavaScript, though this will not let you change params.
In my opinion, the first option I have listed above is the easiest to do.