PDA

View Full Version : How to list down a text file in a list/menu



naween
25 Sep 2010, 09:18 PM
Hi,
im trying to list down options to a second textarea or to an second options(select) field in a HTML form, when you select an option from the first option field. the options to be list in the second should taken from a text file in the server or from a javascript.

the real scenario:
1.there is a option field in a form which you can select a state.
2.when you select a state, another option field in the same form should display the suburbs belongs to that state. the suburbs can be retrieve from a text file in the server or any other method which would be faster.

i tried to do this for about 2-3 weeks from every possible way . some works fine but with some errors on the page . and i failed to find any tutorials or answer in any other forum to this . really appriciate if anybody could help me out .
thanks.