country and states under it

hi where can i get some javascript in which i can get country list and states under it.....i need to put it in php form..

any help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Giovanni GCTOCommented:
under what?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
carchitectAuthor Commented:
it is like wehn i select a country then states under it shud appear
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

take a look at the script i've linked there, it does what you want except states appear only for the usa when it's selected, it can be modified to your needs i think

carchitectAuthor Commented:
thx for the help yes it is good but if i get anything which gives me almost all countries and states under it, will be really appreciated......

as it is there in hotmail signup

this is actually a javascript question in that case. if you mean by having states under the countries in terms of position, then you just need to add a <br> or two between the select boxes. the vaguely useful script is the one above, your best bet is to modify that, the problem i suppose is that not every country has states

carchitectAuthor Commented:
thx alot for the help...i got what i was looking for
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.