in reply to Is it possible to copy arrays from Javascript to Perl variable in the same Perl CGI script?

Have you looked at CGI? Especially the param() function is what you seem to want.

You don't need Javascript (or jQuery) for submitting form values. Maybe you want to learn about HTML and HTTP work together?

  • Comment on Re: Is it possible to copy arrays from Javascript to Perl variable in the same Perl CGI script?
  • Download Code

Replies are listed 'Best First'.
Re^2: Is it possible to copy arrays from Javascript to Perl variable in the same Perl CGI script?
by lightoverhead (Pilgrim) on May 10, 2012 at 14:52 UTC

    I know I don't need javascript to transfer data to CGI

    The point is, I need javascript/jquery do a lot of client side manipulation, then the values will be transfer to perl

    So, in this case, I have to use javascript

      You don't need Javascript there. The transfer happens in exactly the same way. Maybe you want to learn about the .ajax() or .load() function of jQuery, to make page refreshes keep the "current UI state"?

        in my case, I want to transfer the data from js to perl in the same script

        Note: The js code is generated by the same perl CGI script as well

        .ajax() or .load() is to transfer the data to another script/link not transfer data to the same script calls it

        do I miss sth here?