win95progman has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have a perl script that creates a form with a select statement and a series of checkboxes.

All of the data comes from relational mysql tables. The number of checkboxes and their values will be different depending on which value is selected from the drop down list on the form.

I would like to know how I can re-call the script automatically when the user makes a selection from drop down list on the form to reread the database and populate the generated form with the proper checkboxes for the selection that was made?

Thanks in advance

Originally posted as a Categorized Question.

  • Comment on How can I change form data upon user selection?

Replies are listed 'Best First'.
Re: How can I change form data upon user selection?
by win95progman (Initiate) on Jul 02, 2002 at 19:07 UTC
    I did find the answer to my question on the site.

    The solution was to add ONCHANGE="this.form.submit()" to my select statement.

    Originally posted as a Categorized Answer.