Download PHP drop down list script

Two Drop down list Script :

Open the sql file to create your table, then enter your database login details at config.php file.
config.php : Enter your database login details here ( PDO )
dump_dd.txt : SQL dump file to create table in your MySQL database
dd.php : Main demo file to display dropdown lists.
dd-check.php : Collects and display submitted form data.

MYSQLI
config-mysqli.php : Your MYSQLI database login details here
dd-mysqli.php : Main demo file with MYSQLI functions.

download script drop_down.zip

Disabling second list till first list is selected by user

config.php : Enter your database login details here: (PDO )
dump_dd.txt : SQL dump file to create table in your MySQL database
dd.php : Main demo file to display dropdown lists with 2nd list disabled by default.
dd-check.php : Collects and display submitted form data.

MYSQLI
config-mysqli.php : Your MYSQLI database login details here
dd-mysqli.php : Main demo file with MYSQLI functions.

drop_down-disable.zip

Drop down list using Ajax

Open the sql file to create your table, then enter your database login details at config.php file.
config.php : Enter your database details
main.php : Demo script using Ajax to populate second list box
dd.php : Backend PHP script for main.php
mainck.php : Collects and display submitted form data
main-multiple.php : Demo script with multiple selection list box
mainck-multiple.php : Collects and display submitted form data for multiple selection
dd-multiple.php : Backend PHP Script to handle multiple selection list box

ajax-dd.zip

Three Drop down list using Ajax

Open the sql file to create your table, then enter your database login details at config.php file.
config.php : Enter your database details
ajax-dd3.php : Demo script using Ajax to populate second list box
ajax-dd3ck.php : Backend PHP script for main.php
ajax-dd3-details.php : Collects and display submitted form data
sql_dump.txt : SQL dump to create table with records

ajax-dd3.zip

Linking three drop down lists : (without using Ajax )

config.php : Enter your database details
dd3.php : Demo script using three drop down list
dd3ck.php : Collects and display submitted form data
sql_dump.txt : SQL dump to create table with records

dd3.zip


Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Ripon

    08-03-2014

    Dear All,

    i have worked with two drop down box and get result. now i want to save the output in mysql table but in category field it is the number not name is storing in the table field but subcategory field name is saving.

    Please let me know how can i store Category name instead of Cat_id in the table.

    thanks

    Ripon
    smo

    22-05-2014

    In 2nd drop down list the option value is set to category id. That can be changed to sub - category name to pass sub-category name to database table.
    spydie

    05-07-2014

    how to get this to work with 3 different tables...
    sandeep

    26-08-2014

    i want to download script of dependent multiple select list box ? but i cant find that script
    Nishant

    23-09-2014

    Thanks a lot for the great script. Tried a lot on web but this one was easy and straight to the point.
    Mahesh

    03-11-2014

    Hi,
    anyone can please help me in using the above scripts in wordpress.
    Thanks in advance.
    Mahesh
    CHINA

    13-11-2014

    I will be happy, receiving update from you.
    tciseoprocess

    12-12-2014

    plz send me the code for five dropdown list in php using mysql
    pondok

    29-12-2014

    how cen create autocomplete cascade textbox by php and ajax
    smo

    29-12-2014

    Better solution is to use datalist where options are added as the user enter text in text box. This is a HTML 5 feature . You can read more on datalist adding options using Ajax and PHP here.
    arjun

    21-01-2015

    Better solution is to use datalist where options are added as the user enter text in text box
    chandrasekhar

    26-03-2015

    my requirement is when i will select in employeeid automatically display the designation ,name details as well as i insert the some data through text boxes once i will submit the submit button all the data will be stored in mysql database so please help me
    smo

    26-03-2015

    This can be done by uing php mysql and better to use jQuery. We will add this project to our jQuery section.
    Fábio

    10-04-2015

    Hello everybody! I´m brazilian, so sorry by the english...i´ll try. Is it possible to do a script like that, but use the conditions like: the sql of the second list only run if the first drop down list value to be present? Thanks everybody!! Abs
    smo1234

    12-04-2015

    Yes , it can be modified like that.
    Aman

    18-08-2015

    Nice Work Really appericated esaily embeded source code. Thanx alot
    Mayur

    17-09-2015

    Hats off to you... Goof work !! your tutorial has helped me a lot! Thanks
    computer world

    08-11-2015

    resolve the problem of dynimic select command
    Andrea

    09-04-2017

    Hi there,
    I am interested in the three interlinked dropdown listbox using Ajax & PHP (ajax-dd3.zip). The example with Country, States and Cities partially matches what I really need. Instead of using dropdown listboxes, I'd like to convert them into checkboxes with multiple selections in each. I am struggling in getting this with no result.
    Is that possible? Could you provide snippets of codes, if any?
    Many thanks!
    smo1234

    19-05-2017

    This we will develop by using JQuery. Shortly we will place the link here.

    17-09-2020

    thank you so so much, my friend you save my life

    05-07-2021

    Thank you for the codes.

    19-04-2022

    My requirement is almost similar but with static value.
    for eg:
    1. I have 2 tables one with subjects and another with Teachers mapped with different subjects they handle

    Table one
    1- Maths
    2- Science
    3- History

    Table two
    John - 1
    John - 2
    Mark - 1
    Mark - 3

    The html should show the below

    Maths - Drop down list of John and Mark - I should be able to choose one for them for maths
    Science- Drop down list with just John -
    History - Drop down list with Just Mark - I should be able to choose one teacher for history (Mark)

    Submit and the data should be stored in Table 3 StudentMapping

    Student id - Subject id - Teacher id
    1 - 1 - 1
    1 - 2 - 1
    1 - 3 -3

    Thanks
    Ravi

    Post your comments , suggestion , error , requirements etc here .




    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