CakePHP Sandbox App v5
CakePHP 5.x
CakePHP 4.x
CakePHP 3.x
Basics
Conventions
Inflector
Beginner tips
Best practice
Contribute
Sandbox
Overview
CakePHP Core
CakePHP Plugins
Auth Sandbox
Workflow Sandbox
MediaEmbed
JS
Jquery
Tryouts
(ISO) Data
Blog
Actions
Plugins
Ajax Plugin
Using CakePHP Core only
Simple JSON response
Pagination
Endless scroll (vertical pagination)
Redirecting
Using Ajax Plugin
Toggle
Buttons/Delete
Forms
Chained dropdowns
Edit in Place
Redirecting (prevented)
Chained Dropdowns using AJAX
Countries and States
Country
Germany
Austria
Switzerland
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua And Barbuda
Argentina
Armenia
Aruba
Australia
Azerbaijan
Bahamas The
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia and Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Canada
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Congo
Congo The Democratic Republic Of The
Cook Islands
Costa Rica
Cote D'Ivoire (Ivory Coast)
Croatia (Hrvatska)
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands
Faroe Islands
Fiji Islands
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia The
Georgia
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey and Alderney
Guinea
Guinea-Bissau
Guyana
Haiti
Heard Island and McDonald Islands
Honduras
Hong Kong S.A.R.
Hungary
Iceland
India
Indonesia
Iran
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Korea North
Korea South
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macau S.A.R.
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Man (Isle of)
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia
Moldova
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands The
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Territory Occupied
Panama
Papua new Guinea
Paraguay
Peru
Philippines
Pitcairn Island
Poland
Portugal
Puerto Rico
Qatar
Reunion
Russia
Rwanda
Saint Helena
Saint Pierre and Miquelon
Samoa
San Marino
Sao Tome and Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia
Spain
Sri Lanka
Sudan
Suriname
Svalbard And Jan Mayen Islands
Swaziland
Sweden
Syria
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
United States
Uruguay
Uzbekistan
Vanuatu
Vatican City State (Holy See)
Venezuela
Vietnam
Virgin Islands (British)
Virgin Islands (US)
Wallis And Futuna Islands
Western Sahara
Yemen
Zambia
Zimbabwe
State
Please select
Baden-Württemberg
Bayern
Berlin
Brandenburg
Bremen
Hamburg
Hessen
Mecklenburg-Vorp.
Niedersachsen
Nordrhein-Westfalen
Rheinland-Pfalz
Saarland
Sachsen
Sachsen-Anhalt
Schleswig-Holstein
Thüringen
The states list is updated each time the country is switched. It also has a basic fallback for POST data (will auto-remember the previous selection).
Also note how "Please select" requires input, whereas "No option available" does not.
Submit the form to see how validation kicks in and how it behaves with these two different options (required vs. no option available).
Send your feedback or bugreport!
Highlight something
I am okay with
this
.
Submit
Cancel
×
Feedback submitted
Loading...