plus2net Home
HOME
plus2net HOME
SQL
JavaScript
HTML
Python
ASP
jQuery
C
PhotoShop
PHP
PHP Home
Beginners guide
Loops
Date
Form
Array
String
Math
Mail
File - directory
curl
PHP & XML
GD: graphs
Calendar
Filters
PHP MySQL
PDO
MySQLi
SQLite
Session
Scripts
PDF Generation
DropDown
Double drop down list on managing second list based on selection of first list
Enable second drop down list after selection of first list box
Double drop down list Frequently Asked Question
Manageing three drop down list
Double drop down list demo
Three drop down list demo
Adding options to a list box from database
Managing list box options from a period button
Retaining the form field values once the page reloads
Controlling second list box by using Ajax & PHP
Managing three list box by using Ajax & PHP
Multiple selection drop down list using Ajax
Download Script
Login
×
Login
Username
Password
Login
Contact Us
DEMO : dependent multiple drop-down box
PHP
Drop down list in PHP
Select one
Colors
Fruits
Games
Vehicles
Select one
Apple
Banana
Baseball
Bikes
Blue
Cars
Cricket
Football
Green
Mango
Orange
Red
Tennis
Train
Trucks
Yellow
Select one option from first list, then second list will automatically updated with matching options by taking from table.
←
Tutorial on populating the drop-down
DEMO of Three listbox
→
Download Script ( Zip file )
SQL Dump of Category & Subcategory of MySQL table
Copy to clipboard
CREATE TABLE IF NOT EXISTS `category` ( `cat_id` int(2) NOT NULL AUTO_INCREMENT, `category` varchar(25) NOT NULL DEFAULT '', PRIMARY KEY (`cat_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; INSERT INTO `category` (`cat_id`, `category`) VALUES (1, 'Fruits'), (2, 'Colors'), (3, 'Games'), (4, 'Vehicles'); CREATE TABLE IF NOT EXISTS `subcategory` ( `cat_id` int(2) NOT NULL DEFAULT '0', `subcategory` varchar(25) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `subcategory` (`cat_id`, `subcategory`) VALUES (1, 'Mango'), (1, 'Banana'), (1, 'Orange'), (1, 'Apple'), (2, 'Red'), (2, 'Blue'), (2, 'Green'), (2, 'Yellow'), (3, 'Cricket'), (3, 'Football'), (3, 'Baseball'), (3, 'Tennis'), (4, 'Cars'), (4, 'Trucks'), (4, 'Bikes'), (4, 'Train');
←
Subscribe to our YouTube Channel here
This article is written by
plus2net.com
team.
https://www.plus2net.com
Subscribe
*
indicates required
Email Address
*
First Name
Last Name
Subscribe to plus2net
plus2net.com
02-04-2021
What is the name of the database? tables? and columns in it?
13-06-2022
Good php tutorial, thanks for assisting me
Share your comments, suggestions, issues, or requests here.
Detail
✖
We use cookies to improve your browsing experience. .
Learn more
HTML
MySQL
PHP
JavaScript
ASP
Photoshop
Articles
FORUM
.
Contact us
©
2000-2024
plus2net.com
All rights reserved worldwide
Privacy Policy
Disclaimer