Forum Moderators: open
He selects his country.
If his country is "United States", I want to populate a new select control to let him choose a state. How can I do that without javascript?
Even if I do a roundtrip to the server to populate the states control, I can't submit the form on the "onChange()" event of the countries control without javascript!
Should I ask the user to choose his country, then press a button to submit the form and populate the states control on the server? Don't you think this is kind of ugly?
Any thoughts?
<form action="your_script">
Begin by selecting your country:
<select name="country">
<option value="US">US</option>
<option value="AL">Algeria</option>
....
</select>
<input type="submit" value="Continue">
</form>
This is my point: to be able to register a user with no javascript, I can't ask his informations on one page only. I have to ask him the country first, then ask him to submit the page to go on a new page where I'll ask him for the state/province. I think this solution is not really nice.
I'm seriously thinking about only supporting javascript enabled client! :(