Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible for Perl-CGI scripts to react to a user's selection on the form? I have a few popup menus on my form and when the user selects one entry in a popup form, I need to change the options in another.
Is it possible to do this in Perl itself or do I need to use Javascript? I am using code of the form:
I get the desired functionality, except that, I need to change $arrRefCR1 to, say, $arrRefCR2 when the user changes his selection on the chip popup menu.print "<p><em>Enter Chip" ; print $query->popup_menu(-name=>'Chip', -values=>$arrRefC, -default=>'all'); print "<p><em>Enter Chip Rev</em>   "; print $query->popup_menu(-name=>'Chip Rev', -values=>$arrRefCR1, -default=>'all');
I would greatly appreciate any advice from the monks.
Thanks,
Ashish.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can Perl/CGI scripts respond to user selection?
by arden (Curate) on Mar 10, 2004 at 21:19 UTC | |
|
Re: Can Perl/CGI scripts respond to user selection?
by Grygonos (Chaplain) on Mar 10, 2004 at 21:47 UTC | |
by ashisht (Acolyte) on Mar 25, 2004 at 03:23 UTC | |
|
Re: Can Perl/CGI scripts respond to user selection?
by TomDLux (Vicar) on Mar 10, 2004 at 21:37 UTC |