Hi,

I m using cgi module,I have written a cgi script to create a web page which consists of 2 listboxes, first one consists of 3 values, 2nd listbox empty. i have written a javascript in the same cgi script for onchage event of the first listbox - the java script do store the selected value in variable. What i need to do is, the slected value should be passed to server side cgi script and values to be populated in listbox2 accorroding to the value selection of first listbox

Let me know, how to pass value of javascript variable to server side cgi script
how to setvlaues to the listbox ( i tried with param subroutine param('listboxname','array of values')- it fails.

Regards,
Anbarasu


In reply to how to send value of javascript var to server side scrip by anbutechie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.