Ajax Depented Dropdown
Ajax Depented Dropdown (PHP) index.php <?php $conn = mysqli_connect("localhost","root","","dropdown_list"); if ($_SERVER['REQUEST_METHOD'] == "POST") { $country_dropdown = $_REQUEST['country_dropdown']; $state_dropdown = $_REQUEST['state_dropdown']; $dist_dropdown = $_REQUEST['dist_dropdown']; $enter_population = $_REQUEST['enter_population']; $btn = $_REQUEST['btn']; $query = mysqli_query($conn, "INSERT INTO population_table (country_dropdown,state_dropdown,city_dropdown,total_population) VALUES ('$country_dropdown','$state_dropdown','$dist_dropdown','$enter_population')"); if ($conn->affected_rows > 0) { echo "<script>alert('Submited successfully')...