Web pages do not have an on-going connection to the server, so normally all information must be downloaded on the initial response. You have three options:
The most straightforward solution to your problem is to split the required functionality in two pages. In the first page the user will enter the state info. When the form is submitted to the server, a second script will return a page with the county selection form.
Finally, if the number of counties is too large, in which case you would not want to send the full selection set for the whole country, then you can implement a 3rd solution, which involves a hidden frame (a frame with 0 width or height). The OnChange event of the state selection drop-down list would call a FoxWeb script in the hidden frame, passing the selected state to the script in the query string portion of the URL:
Drop-down list HTML:
On-change event code:
Another variation of this solution, but which only works with Microsoft IE, was sent by our user Oleg Goncharuk:
|FoxWeb Support Team|