[thelist] Select - forms

Taz taz at freshegg.com
Mon Mar 10 09:40:01 CST 2003


Check out this link (something I wrote similar) for an example of how to
use javascript to allow the re-population of X amount of drop down
fields:
http://www.nickers.co.uk/hipster-thong.htm

Taz

-----Original Messages-----
>> ok here is the link if you select Somerset and then nothing except
>> what is displayed as set of results get returned.
>>
>> If you then choose any other county the same reults remain there
>> untill you then hit the submit button again, so there is some type of

>> refresh problem I think or
>> the form isn't right :(
>>
>> http://www.punterspower.co.uk/index.php
>>
>> here is the code:
>
>The behaviour is what I would expect. You are populating the drop down
>options using php so to refresh the city list the county form needs to
>be submitted to the server so that php can re-build the city list. If
>you want that process to be automatic then you'll need a client side
>javascript event handler to automatically submit the form on change of
>county... eg onchange="submit()"





More information about the thelist mailing list