elavazhagan perl wrote:
> 
> I have two combo boxes in which the first one is used for choosing the
> Regions and the second one is for the corresponding countries.
> I would like to do this with Perl and html  without  importation any modules
> and eventhough it is better by Javascript.
> 
> I am getting the pull down menu values through cgi Param functions.
> Now when the user chooses the region and the country,the values are assigned
> to the $review_region and the $country_code res.
> 
> While I am trying to hard code the display by the following way.. the
> following country overrides the previous one.
> 
> my requirement is when the user choose the region,only the corresponding
> countries  should be displayed.
> Please pardon me the clarification is not sufficient and let me know to add
> more...

If you want the options in the countries list to change according to the value
selected from the regions list then you must write in JavaScript. A Perl CGI
program will only see the option chosen once the submit button is pressed,
whereas you can write a client-side JavaScript event handler to alter the
contents of one list whenever the value of another changes.

To write in Perl CGI you would have to have a form with just a region list.
Selecting from that list and submitting the form would bring up a second form
with the countries from that region.

Please describe in detail what behaviour you want from your form.

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to