How to make one drop down dependent on another drop down | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make one drop down dependent on another drop down

Like we select country and its releted states come

14th Apr 2022, 6:36 AM
Rajveer Kaur
Rajveer Kaur - avatar
3 Answers
14th Apr 2022, 7:17 AM
Calviղ
Calviղ - avatar
+ 1
Ruby 🌿 To insert html data into db table, you would need to setup db table with a db schema From frontend, html file, set the select input in a form tag, form tag with PHP action and method attributes. Setup a PHP script to process post data and save the data into db table from backend. For more details, please refer to this file https://code.sololearn.com/w8oD4T90kXp6/?ref=app Please note that you need a PHP server with MySQL db installed before you could execute this script, and it would not run from the code playground.
17th Apr 2022, 4:45 PM
Calviղ
Calviղ - avatar
0
Calviղ now this selected value Pass to my Sql how
14th Apr 2022, 3:40 PM
Rajveer Kaur
Rajveer Kaur - avatar