Based on your question, it sounds like you are hoping to ONLY populate a combo box based on a selection. It doesn't work like that. What you need to do is SUBMIT your form to the Perl script which will then re-write the HTML with the 'other' combo box populated.
You can do this with an onchange event or, if javascript is disabled, provide a submit button.
| [reply] |
| [reply] |
| [reply] |
Actually, what that search finds isn't useful.
Most of the questions on this topic are how to embed perl in HTML, or other sorts of things that are done on the server side.
Rainmaker's question is about telling the user agent to call a perl function when someone changes the value of an HTML form element.
This can't be done reliably. onchange is typically used to call JavaScript (or JScript, LiveScript, ECMAScript, or whatever implementation it is that your browser uses)
Yes, you can try specifying that the script's language is 'text/perl', or 'text/tcl' or 'text/vbscript', but you can't be sure that the browser will know what to do with it.
If you want to try for yourself, save this code to file, and test it for yourself.
| [reply] [d/l] |