lightoverhead has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I tried to transfer an array from javascript to a perl variable, which will be used later by perl.
Key part:
<select id="multiple" multiple="multiple"> <option selected="selected">Multiple</option> <option>Multiple2</option> <option selected="selected">Multiple3</option> </select> //html markup
var multipleValues = $("#multiple").val() || []; //javascript/jquery
My question is how to transfer/copy the array "multipleValues" to an perl array variable "@array" in the same perl script(CGI).
I generally will single quote javascript code and imbed them in the CGI code
But if I want to use the results from the javascript in this same CGI script,I don't know how
Could someone help me?
Thank you
|
|---|