In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Imtiaz Ahmad) writes: >Hi- > >Is there a way in PERL to automatically populate second drop down >based on what is selected in the first drop down.
No. You need JavaScript. Because this has to run in the user's browser, and Perl doesn't. I'm assuming that (a) You don't want the form to be submitted on each drop down change so that a (Perl) CGI program can see the selection and change the form - this would impose a visible delay for the user compared to JavaScript - and (b) you're talking about an HTML form in a browser, and not some Tk or other locally run GUI. It is best to be explicit about such things when posting so people don't have to make assumptions to answer you. >For example >If the first drop down has following three choices > air > land > sea > >Then if a user is selects land then the second drop should list following >choices > car > bus > train [...] -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]