{"id":22051300,"url":"https://github.com/2winners/html_form-country-state-select","last_synced_at":"2026-05-13T05:31:41.953Z","repository":{"id":265173581,"uuid":"895341066","full_name":"2winners/HTML_Form-country-State-Select","owner":"2winners","description":"Premade Simple Country and Automatic State/Province options  ","archived":false,"fork":false,"pushed_at":"2024-11-28T04:21:44.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T21:33:38.674Z","etag":null,"topics":["form","form-select","html","js","json","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2winners.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-28T02:56:46.000Z","updated_at":"2024-11-28T04:26:26.000Z","dependencies_parsed_at":"2024-11-28T04:36:34.905Z","dependency_job_id":null,"html_url":"https://github.com/2winners/HTML_Form-country-State-Select","commit_stats":null,"previous_names":["2winners/html_form-country-state-select"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FHTML_Form-country-State-Select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FHTML_Form-country-State-Select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FHTML_Form-country-State-Select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FHTML_Form-country-State-Select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2winners","download_url":"https://codeload.github.com/2winners/HTML_Form-country-State-Select/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245121401,"owners_count":20564123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form","form-select","html","js","json","php"],"created_at":"2024-11-30T15:08:32.250Z","updated_at":"2026-05-13T05:31:41.926Z","avatar_url":"https://github.com/2winners.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML_Form-country-State-Select\nPremade Simple Country and Automatic State/Province options  \nuses :\n#HTML\n#PHP\n#JS\n#JSON\n\nThis HTML - PHP - JS code can be used to easy implement a SELECT form field where you want any country and then Any state of that country \nthe simple json format where the options are Pre Optioned and just need to be print or inserted into the HTML\n```json\n\n{\n  \"Countries\": {\n    \"CountryName\": {\n      \"option\": \"\u003coption value='CountryName'\u003eCountryName\u003c/option\u003e\",\n      \"phonecode\":\"0\",\n      \"States\": [\n        \"\u003coption value='State1'\u003eState1\u003c/option\u003e\",\n        \"\u003coption value='State2'\u003eState2\u003c/option\u003e\"\n      ]\n    },\n    \"United Kingdom\":{\n       \"Option\":\"\\u003Coption value='United Kingdom'\\u003EUnited Kingdom\\u003C\\/option\\u003E\",\n       \"phonecode\":\"44\",\n       \"States\":{\n          \"England\":\"\\u003Coption value='England'\\u003EEngland\\u003C\\/option\\u003E\",\n          \"Northern Ireland\":\"\\u003Coption value='Northern Ireland'\\u003ENorthern Ireland\\u003C\\/option\\u003E\",\n          \"Scotland\":\"\\u003Coption value='Scotland'\\u003EScotland\\u003C\\/option\\u003E\",\n          \"Wales\":\"\\u003Coption value='Wales'\\u003EWales\\u003C\\/option\\u003E\"\n       }\n    },\n    ...\n  }\n}\n\n```\n\nThe \u003cb\u003eExample_Location.php + Options.json\u003c/b\u003e can be run directly and is a functioning form that can be posted to try it.\n\nThe \u003cb\u003eBarebones.php + Options.json\u003c/b\u003e file is all thats needed to make it work \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2winners%2Fhtml_form-country-state-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2winners%2Fhtml_form-country-state-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2winners%2Fhtml_form-country-state-select/lists"}