46 users online (0 members and 46 guests)  


  Results 1 to 2 of 2

Related

  1. convert a perl variable to javascript variable    Forum: Javascript Forum
    Replies: 0
  2. Javascript executing perl?    Forum: Javascript Forum
    Replies: 4
  3. Replies: 5
  4. error in perl with javascript    Forum: CGI Perl Forum
    Replies: 1
  1. #1
    sandhya's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Posts
    3

    How to get value from javascript to PERL

    Hi,
    There is drop down list in form.
    I have to populate another list by getting the value of drop down box .
    So I implemented function in javascript for the onchange () event . But How I can get that selected value in PERL.
    so that I can use that value in sql query to populate another list??

    Thanks,
    Sandhya

  2. #2
    poornima's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2007
    Posts
    1

    Re: How to get value from javascript to PERL

    You can have a name for the select tag like this. <select name='menu1'> and access as
    my $menu1 = param('menu1');
    in the perl file. But for this u need a form and a submit action.
    Hope this help you.
    -Poornima.



Tags for this Thread