Thursday, July 19, 2007

Ajax Triple Dropdown with States Cities Database

Ajax Dropdown Menu it's make easy for user to use interface. When you choose first dropdown menu data in second dropdown will be filter and data related in first dropdown will be show automatic

For This Example Code is PHP and Database is MySQL

Example : Stated and Cities

1. Create Dropdown Menu (state_dropdown.php)


<?
echo "<form name=sel>\n";
echo "States : <font id=states><select>\n";
echo "<option value='0'>============</option> \n" ;
echo "</select></font>\n";

echo "Cities : <font id=cities><select>\n";
echo "<option value='0'>=== none ===</option> \n" ;
echo "</select></font>\n";
?>

<script language=Javascript>
function Inint_AJAX() {
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE
try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
try { return new XMLHttpRequest(); } catch(e) {} //Native Javascript
alert("XMLHttpRequest not supported");
return null;
};

function dochange(src, val) {
var req = Inint_AJAX();
req.onreadystatechange = function () {
if (req.readyState==4) {
if (req.status==200) {
document.getElementById(src).innerHTML=req.responseText; //retuen value
}
}
};
req.open("GET", "state.php?data="+src+"&val="+val); //make connection
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
req.send(null); //send value
}

window.onLoad=dochange('states', -1); // value in first dropdown
</script>



2. Select States and Cities to Show in Dropdown (state.php)


<?
//set IE read from page only not read from cache
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");

header("content-type: application/x-javascript; charset=tis-620");

$data=$_GET['data'];
$val=$_GET['val'];

//set database
$dbhost = "localhost";
$dbuser = "";
$dbpass = "";
$dbname = "test";
mysql_pconnect($dbhost,$dbuser,$dbpass) or die ("Unable to connect to MySQL server");

if ($data=='states') { // first dropdown
echo "<select name='states' onChange=\"dochange('cities', this.value)\">\n";
echo "<option value='0'>==== choose state ====</option>\n";
$result=mysql_db_query($dbname,"select `id`, `state` from states order by `state`");
while(list($id, $name)=mysql_fetch_array($result)){
echo "<option value=\"$id\" >$name</option> \n" ;
}
} else if ($data=='cities') { // second dropdown
echo "<select name='cities' >\n";
echo "<option value='0'>====choose cities ====</option>\n";
$result=mysql_db_query($dbname,"SELECT `id`, `city` FROM cities WHERE `state_id` = '$val' ORDER BY `city` ");
while(list($id, $name)=mysql_fetch_array($result)){
echo "<option value=\"$id\" >$name</option> \n" ;
}
}
echo "</select>\n";
?>




See Example : States and Cities DropDown
Download Source code : ajax_dropdown.rar
mirror : ajax_dropdown.rar

( Please don’t directly link to the file… thank you )

Example 2 : This is Triple Ajax Dropdown Menu - Province - Ampher - Tumbon in Thailand

1. Create Dropdown Menu (locale_dropdown.php)

<? echo "<form name=sel>\n"; echo "จังหวัด : <font id=province><select>\n"; echo "<option value='0'>============</option> \n" ; echo "</select></font>\n";
echo "อำเภอ : <font id=amper><select>\n"; echo "<option value='0'>==== ไม่มี ====</option> \n" ; echo "</select></font>\n"; echo "ตำบล : <font id=tumbon><select>\n"; echo "<option value='0'>==== ไม่มี ====</option> \n" ; echo "</select></font>\n"; ?>

<script language=Javascript>
function Inint_AJAX() {
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE
try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
try { return new XMLHttpRequest(); } catch(e) {} //Native Javascript
alert("XMLHttpRequest not supported");
return null;
};

function dochange(src, val) {
var req = Inint_AJAX();
req.onreadystatechange = function () {
if (req.readyState==4) {
if (req.status==200) {
document.getElementById(src).innerHTML=req.responseText; //รับค่ากลับมา
}
}
};
req.open("GET", "locale.php?data="+src+"&val="+val); //สร้าง connection
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
req.send(null); //ส่งค่า
}

window.onLoad=dochange('province', -1);
</script>


2. Select Province Ampher Tumbon to Show in Dropdown (locale.php)

<?
//กำหนดให้ IE อ่าน page นี้ทุกครั้ง ไม่ไปเอาจาก cache
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");

header("content-type: application/x-javascript; charset=tis-620");

$data=$_GET['data'];
$val=$_GET['val'];

//ค่ากำหนดของ ฐานข้อมูล
$dbhost = "localhost";
$dbuser = "";
$dbpass = "";
$dbname = "test";
mysql_pconnect($dbhost,$dbuser,$dbpass) or die ("Unable to connect to MySQL server");

if ($data=='province') {
echo "<select name='province' onChange=\"dochange('amper', this.value)\">\n";
echo "<option value='0'>==== เลือก สังกัด ====</option>\n";
$result=mysql_db_query($dbname,"select loc_code,loc_abbr from location where loc_name = location_name and loc_code != '000000' and flag_disaster is null order by loc_abbr");
while(list($id, $name)=mysql_fetch_array($result)){
echo "<option value=\"$id\" >$name</option> \n" ;
}
} else if ($data=='amper') {
echo "<select name='amper' onChange=\"dochange('tumbon', this.value)\">\n";
echo "<option value='0'>======== เลือก ========</option>\n";
$val2=$val;
$val = substr($val,0,2);
$result=mysql_db_query($dbname,"SELECT loc_code, loc_abbr FROM location WHERE loc_code != '000000' and loc_code != '$val2' AND loc_code LIKE '$val%' AND flag_disaster IS NULL ORDER BY loc_code, loc_abbr ");
while(list($id, $name)=mysql_fetch_array($result)){
echo "<option value=\"$id\" >$name</option> \n" ;
}
} else if ($data=='tumbon') {
echo "<select name='tumbon' >\n";
echo "<option value='0'>======== เลือก ========</option>\n";
$val2=$val;
$val = substr($val,0,4);
$result=mysql_db_query($dbname,"SELECT loc_code, loc_abbr, loc_name, location_name FROM location WHERE loc_code != '000000' and loc_code != '$val2' AND loc_code LIKE '$val%' AND flag_disaster IS NULL ORDER BY loc_code, loc_abbr");
while(list($id, $name)=mysql_fetch_array($result)){
echo "<option value=\"$id\" >$name</option> \n" ;
}
}
echo "</select>\n";
?>




Download Source code :
ajax_dropdown.rar
mirror : ajax_dropdown.rar

( Please don’t directly link to the file… thank you )

PS. In ajax-dropdown.rar file Include
for states and cities (america)
state.php
state_dropdown.php
state.sql (MySQL)

for province ampher tumon (thailand)
locale.php
locale_dropdown.php
location.sql
(MySQL)

214 comments:

1 – 200 of 214   Newer›   Newest»
finzaa said...

พี่ครับ

finzaa said...

พี่ครับ ช่วยอธิบายเป็น Step By Step เป็นไทยด้วยได้ไหมอ่าครับ

คือแบบ งงมากๆอ่าครับ

ขอบคุณครับ

m2fu said...

Hi, I like this script a lot, but I am having trouble with doing my own variation of a drop down box system.

Basically I'm making a simple tire search system. You search what tires would be compatible with your car by selecting three linked drop down boxes which populate from a mysql database.

Can anyone help me out ?

superkeng said...

m2fu : you can see example tree linked drop down at "2. Select Province Ampher Tumbon to Show in Dropdown"

first box is " if ($data=='province')"
second box is " else if ($data=='amper') "
and last box is "else if ($data=='tumbon') "

$val is value send to sql query box2 and box3

peter : อยากให้อธิบายตรงไหน ถามมาเลยครับ

m2fu said...

Hi superkeng Can I email you because I need to explain a lot...
I can't get my third drop down box to populate

superkeng said...

mail to superkeng at gmail.com ^__^

bloodymental said...

hi.. great code... i jus have one problem.. i can get all the 3 drops down menus to populate however when i submist a form with a POST action it does not capture the value in the drop down.... any ideas?

Unknown said...

Hi. This ajax dropdown is amazing!!
but I have a little problem with.
I use a phplib a templating system and if i use GET " req.open("GET", "?page=state&data="+src+"&val="+val);"
it include in the td the whole page :(
and if I specify it like this: " req.open("GET", "/state.php&data="+src+"&val="+val);"
don't work.

Any idea ?
Thanks

kaew said...

ถ้าเราต้องการ แสดงข้อมูลจากฐานเพื่อทำการแก้ไข
และใช้ ajax จังหวัด อำเภอ ตำบล เวลาโยนค่าทำอย่างไรช่วยอธิบายให้หน่อยนะคะ ตาม เมล์คะขอบคุณมา
boy1999@hotmail.com

xodMedia said...
This comment has been removed by the author.
twin said...

สุดยอดมากเลยครับ เอาไปลองใช้แล้ว แต่เวลาเลือก อำเภอแล้วมีปัญหาครับ เพราะออกมาทั้งอำเภอและตำบล เมื่อเลือกจังหวัดหรือตำบลไม่มีปัญหาครับ ไม่รู้ว่าเป็นที่ ตารางหรือเปล่าครับ

อ้อ มี Email ไหมครับเพราะจะมีรายละเอียดที่จะเขียนถามยาวครับ (คือต้องอธิบายละเอียด)ครับ
ขอบคุณล่วงหน้า
inteltwin@gmail.com

Unknown said...

Thank you for this... got it working in a few mins and was what I have been looking for for weeks.

matt said...

nice works, I will use that...

Unknown said...

รวมๆ แล้ว ก็ มาถูกทางแล้ว

อาจจะต้องแก้ไขอีกนิดหน่อย
ตรงส่วนโปรแกรม และส่วน database ที่ยังไม่สมบูรณ์ นัก

ตอนนี้ กำลังเรียงจังหวัดตามตัวอักษรอยู่
และ เพิ่มบางจังหวัดที่ตกหล่น
เช่น กระบี่ (ตอนนี้ กำลัง แก้ไขอยู่)

ยังไงก็ ขอบคุณ สำหรับ ตัวอย่างอันนี้

ก็ช่วยประหยัดเวลา ไม่ต้องทำเองไปเยอะมากเลย

yasin said...

Thanks for this. It is very useful but I having trouble also. I can not get the values when press submit button. I will be glad if anyone show the solution?

yasin said...
This comment has been removed by the author.
Unknown said...

Great tutorial and script - only problem I am having is when viewing the dropdown lists in IE - they slide all the way to the top of the screen - any suggestions?

Goragod.com said...

โค้ดเต็มๆต้นฉบับ ตอนนี้เป็นแบบสมบูรณ์แล้ว ที่ http://www.goragod.com

ITyleR said...
This comment has been removed by the author.
ITyleR said...

How is it possible to save selected the chosen value in a list (at the change of information of form)?

Nitesh Kothari said...

can you please explain how to implement this on blogger

Glen said...

Tks for this. Been chasing around google for ages to find something that is simple and that works. Slick. Well done. Got it working with both dropdowns coming out of an Ingres database.

Heinz Wittenbecher said...

Thank you very much for this sampling of using dropdown with ajax. I've expanded it to 7, gathering information about a vehicle so that ultimately I can show a list of parts.

Where I'm a bit stuck is how to break out and go to a new page. I.e. I've collected all the info I need and now I want to go to a page where the resulting parts are displayed.

Thanks again and if anyone has some hints re breaking to a new page, thanks in advance.

jk said...

Hi,

This is a nice tutorial. But I have a problem.

When you select the category1 (firstdropdown) then the category2 list shows. But when you keep change in the category1 little faster for a while and stops, the sub category stops show the result and later it stops works totally. Why ajax gets stuck when this kind of events occurs?

Fes x said...

Hi,

Excellent script!

Can you show me how i can have the dropdowns pre loaded and options selected?

Unknown said...

Thank you very much!
Great script!

Unknown said...

Looks nice, but you can't download it. Anyone have it uploaded somewhere real people can download it? (I.E.: NOT those stupid, lame-assed, 'free' upload sites?)

omni said...

Hi, great script, but I'm trying to create a page where both dropdowns are defaulted on page loading from a mysql database.
Any hints on how to do this would be great. I can get the values from the database, just can't get the dropdowns to take on these values when page loads.

balicenter said...

Waw. its cool thank for sharing, and keep posting

regard'

Bali Villas

phpcode.hu said...

Nice tutorial!

Pêle-Mêle said...

Hi Superkeng this is great. But I am having trouble understanding the difference between the first and second script...

Pêle-Mêle said...

I mean, do I have to use both codes ? or does one replace the other? the reason I an saying this is that when I run the first code, I get two drop downs and when I run the second one, I get another drop down.

phpcode.hu said...

Hi!As you see, the first code creates two dropdown list, the second section dropdown will changes depending from the first list.(See the images.
----------------)
The second dropdons creates 3 dropdown lists. But the 2 codes in my opinion is a bit different. Hello,
akos

Pêle-Mêle said...

Akos, sounds like in the first code, there is no use of mysql database...am I correct?
I have a database that has state and city, I want the user to first select a state and then the list of corresponding cities will show up in the second drop down. which code am I suppose to use?

phpcode.hu said...

on the dropdown image you will see:
mirror : ajax_dropdown.rar

You will find state_dropdown.php the Javascript(inside), and the original empty dropdowns.

But in state.php you have to change the database connection, that will make the changing dropdowns...

Run state.sql in phpmyadmin (run the SQL command.)

Hello!

Paulo Serra said...

hi, this doesnt work with me, it only appears this:

"; echo ""; $result=mysql_db_query($dbname,"select loc_code,loc_abbr from location where loc_name = location_name and loc_code != '000000' and flag_disaster is null order by loc_abbr"); while(list($id, $name)=mysql_fetch_array($result)){ echo "$name \n" ; } } else if ($data=='amper') { echo "

phpcode.hu said...

This coderesult might comes if your server doesn't allow the short open php tags.

how to solve it? replace all < ? into < ? php

hello, jjozsi.

Paulo Serra said...

yes i have found some minutes ago, i was just reply when you reply. one stuff how the triple example database works? i know that the 2 dropdown works with 2 table, the triple example is working with one table and since he doesnt appear the data because its in Thai i cannot figured it out. Can you explain it please? Best Regards

phpcode.hu said...

I did not tried the triple dropdown yet :) Becouse i modified it to pupolate a textarea using two dropdown list, for a project/table/ --> fieldnames lister.

I would help to comment the triple dropdown, but not today.

Paulo Serra said...

i found one problem. Its not working on Internet Explorer, do you know why? its working just fine on firefox.

the IE give this error: "document.getElementById(...) is null and its not an object"

regards

phpcode.hu said...

i use this code snippet on Opera, Firefox, Internet explorer. go to http://www.phpbuilder.com/board/ and post that problem. i'm a member of that forum with lots of experts. They can help to you. i can only suggest this. Hello, akos

Unknown said...

something similar for those AJAX inclined

http://imagecowboy.com/articles/create_ajax_menu_asp_part1.asp

phpcode.hu said...

Hy all :) i've chenged a little this code, to update database tables:

you can generate it here:
http://phpcode.hu/ajax_updater/

Unknown said...

Hi,

The code works great! It's the 3rd script I try and it finally works.

I have 2 drop downs (country and region) and a button that when pressed is suppose to add a marker on my google map centered to the region. It worked before but now it does nothing.

I call this with my button: onClick="showAddress();"

And this is my function:

function showAddress() {
var countryID = document.getElementById("countries");
var country = countryID.options[countryID.selectedIndex].text;

......... (the rest of the code that creates the marker on the map)
}

When I use this in the function
alert(countryID);

I get this: [object HTMLFontElement]


What can use to access the region and country from the drop downs?

Thanks,
Brian

phpcode.hu said...

Hello there, i've made an ajax generator for table update, but now you can design sub dropdowns and textfields. Test it here:
http://phpcode.hu/teszt/ajax/

Video tutorial:
http://www.youtube.com/watch?v=h7AMMb4bVgY

Demo is here:
http://phpcode.hu/teszt/ajax/ajax_teszt_update.php

kit said...

May i know to predefine the state and city as selected? Example, when register user using your script is work fine. But when want to update account, i need to retrieve the stored value and set the state & city as selected. How do i do this? Please help. Thanks.

kit said...
This comment has been removed by the author.
phpcode.hu said...

if you're using php, you can change the clint side output to re-call the dropdowns with the selected state and city numbers.

http://phpcode.hu/one_click_repo/?h=331bd2a1_99

kit said...

Thanks for quick reply. But the code not work for me and i've figure it out. Below is my code:

function dochange(src, val, selected) {
.
.
req.open("GET", "state.php?data="+src+"&val="+val+"&selected="+selected);
.
}

dochange('State', state_value, 0);
dochange('Area', state_value, area_value);

dochange should pass in state_value instead of area_value and need to pass selected value to php then only can set the selected area. :) Thank you.

phpcode.hu said...

Yes, the two values needed to embed into the javascript calls. In the original code body.onload reload the first dropdown with a value: -1

this is what you can make if you want to reload all the dropdowns.

disa said...

Hello all. This ajax dropdown will be very usefull for me,
but I have a little problem with it.
If I use GET "req.open("GET", "?act=state&data="+src+"&val="+val);"
it include in my table cell the whole page,
and if I specify it like this: " req.open("GET", "?act=some_page&state.php&data="+src+"&val="+val);"
don't work.

inetsolution said...

Its highly informative. I would be visiting your blog hereafter regularly to gather valuable information.



professional logo designer india

Chris said...

You need to update that poller, the best php editor is not on the list! Since the debuggers are all bad anyway, just use a good text editor that has nice printing and indenting and color coding: ie USE KATE! (comes with Ubuntu and is available free for most/all Linux distro's..)

AbdulBasit said...

nice work

http://www.abdulbasitnawab.com

AbdulBasit said...

nice work

http://www.abdulbasitnawab.com

Unknown said...

thanks for sharing this site. there are various kinds of ebooks available from here

http://feboook.blogspot.com

Unknown said...

I used the above state.php and state_dropdown.php ..... It is only displayin a dropdoen menu but no states and cities are coming in it....

phpcode.hu said...

Then try to set up the server side script correctly first. The mysql connection, the tables created ,ect.

Balayya fan said...

alert("Testing");

Unknown said...

Great post and very well written, that will really help you to learn Web Design, web development and SEO Strategies to help businesses web design company . You can find out many useful information about web design, seo and his work by visiting his blog and I Just wanna say thanks you for the information you have shared. Web Design Company India

Jason87 said...

Anyone have an up to date version of this?

Cheers

phpcode.hu said...

@Jase : What do you mean by: "up to date"?

If you need you can change the code to prevent MYSQL injection. Or search a newest database from countries.

phpcode.hu said...

I've made a JQUERY select generator for two or three dropdowns.
Here

Jason87 said...

php.hu

I just mean i find this hard to understand, im trying to impliment this myself and im having no luck. I was wondering if there was a tutorial for this instead of just source code.

It would be great if you could email me actually if you are quite good with this.

phpcode.hu said...

i can make a video how to install it, but you have to decide which dropdown you need.

It takes time to 'insetall' the SQL tables, maybe you have trouble around that?

Golden Sparrow said...

Great coding..seen others but this was the easiest to work with..took me a while to get it to work but main issues where connection to database stuff not the coding....

The only problem I have is that the third dropdown doesn't change when the first drop has changed. Anyone have any suggestions?

phpcode.hu said...

The third dropdown and the first aren't in connection. Just the first to the second, and the second to the third. You need to pass the value based on its value.

Golden Sparrow said...

Gee that was a quick reply. Thanks.

Unknown said...

How can I make the third dropdown change when the first drop has changed.

pls give me some code.

nice works!

Golden Sparrow said...

Hi Chris

How I did it was to create 3 functions. One like the one here, one that resets the third dropdown and one that is like the one here and also calls the third dropdown reset. Have a play and try and figure it out. Let us know if you've cracked it.

I'm sorry this is probably not the answer you want. Took me ages to figure it but have learnt from it.

TamaChagwira said...

I have a problem. My second dropdown values are returning empty values when sent for saving. what must be the problem

phpcode.hu said...

The second dropdown based on the first dropdown value, so you can troubleshoot if you save the passed value and save that into a file in PHP. I usually save the whole SQL query string i have when the dropdowns are changing, you can save into a file, and can test in PHPMYADMIN.
All the returning values in JS could displayed for test, use the alert function on the returning results.

sunny said...
This comment has been removed by the author.
Matt Robinson said...

Tum mai tueng, Tum gub chun dai

rajeev pal said...

it is a great post but when i use post method then the value is show the id not value pls help me if any solution for this problem on my mail id.

rajeev.kumar6663@gmail.com

phpcode.hu said...

Basically this script uses HTML codes when you call the JS functions. So in the PHP file you can modify the the field names which inserted into the < option value ="$id" > $value < /option >

Trip Advisor said...

oh my god finally i found some one who can understand what are he talking about ..you helped me so so much thanksفيس بوك

arkuda2 said...

With the ULTRA Power led flashlight you will never remain in the dark

Unknown said...

phpcode.hu,

you made this code to set the php variable:

function recall()
{
dochange('states',);
dochange('cities', );
}
window.onLoad=recall();

Could you tell me where to place it? Because as soon as i try to place it i lose my values in the 1st dropdown

thank you!

Unknown said...

PS iam using the version with 2 dropboxes and i need the value of the second dropbox to be posted to the next page.

Thank you!

List Email Country. said...

How to get values from selected dropdowns for insert into database ?

Unknown said...

Great thoughts you got there, believe I may possibly try just some of it throughout my daily life.


SEO Company Chennai

phpcode.hu said...

VÕ ĐÌNH said...

How to get values from selected dropdowns for insert into database ?

Add a form to the dropdowns, and post to a process.php file.
The code is right here:
http://phpcode.hu/one_click_repo/?h=89ce2810_135

phpcode.hu said...

Hello friends, you can find a code maker here with tutorial video:
http://phpcode.hu/teszt/ajax_helper/?lang=eng

With it you can easily generate unlimited linked listboxes.

phpcode.hu said...

What are your questions?

Anand said...

this is work very nice.this save my one day

Unknown said...

Dsquared I like to spend my free time by scaning various internet recourses. Today I came across your blog and I located it is as one of the best free resources available! Well done! Keep on this quality! · sfjoxiaujld Dsquared *

Anonymous said...

Could you explain the following two query strings?
$data=$_GET['data'];
$val=$_GET['val'];

I don't see where the data is stored or being pulled from for the 'data' and 'val'

Thanks!

Unknown said...

it isnt, it stores it in the link so you can withdraw it from the url after the user selected and posted

Andrei Mincov said...
This comment has been removed by the author.
Andrei Mincov said...

When I was looking for a decent database of world cities for my web project, I tried using all of the free city databases out there. I even paid for a couple of them.

But none of them satisfied me. They either had too much useless information (like longitudes, administrative subdivisions for tiny countries, or thousands and thousands of entries for small countries) or too little.

This is why I decided to create my own database.

After that was done I decided to share the results of my work with the world.

I offer my database both in Excel and SQL formats. It has over 40,000 of U.S. cities and a total of over 70,000 cities. To me it is the perfect balance between completeness and usefulness.

If you are interested, visit http://worldcitiesdatabase.info and see if my database is right for you.

ครูทีม วรวิทย์ ไชยวงศ์คต said...

ขอบคุณครับ สุดยอดจริงๆ

John Ortiz Ordoñez said...

The example at: http://superkeng.freehyperspace.com/state_dropdown.php does not work.

phpcode.hu said...

we are not wizards, so share the source code intead of a broken url, please. There are a couple of good programming forums to get help. phpbuilder.com 4 example.

Unknown said...

so share the source code intead of a broken url, please. There are a couple of good programming forums to get help. phpbuilder.com 4 example.
Sightline Payments Bally TechnologiesDeal or No Deal

Ragav said...

i get ur coding for drop down menu thank u

Stoker said...

nice tutorial, i have only one question. I would like to select multiple values in the first selectbox, and show from all those values the results in the second dropdown. Does someone know how i can do this??

many thanx in advance

nihaa said...

Nice drop down, just I'm going to add my project. thanks
-------
Unlimited Web Hosting

Kelly Jones said...

Perfect post. Here’s a tool that lets your build your online database without programming. There is no need to hand code PHP. Cut your development time by 90% http://www.caspio.com/

Anonymous said...

This is a good post and nice point of view..really interesting and amazing here.Thanks for this brilliant information.
web designing company

Unknown said...

The afternoon grows light because at kirefg88 last,Abruptly a minutely shredded rain
Is falling, or it fell. For once again,Rain is something happening in the past.
Wholesale New Era Hats
Cheap 59fifty Hats
Cheap New Era Hats
New Era Snapback Hats
New Era Fitted Hats

SANDY said...

very useful post.................
THANK YOU SO MUCH.........

sandeep said...

Thanks for code.. This code is in PHP but I am going to use in DNN Development. I hope it will work.

Unknown said...

That is some alarming and advantageous advice appropriate there. I cannot delay until the little humans go to beddy-bye so that I can apply and plan some of this being out.Thanks!
Advertisement

Unknown said...

"I absolutely acknowledge the affectionate of capacity you column here. Thanks for administration advice that is in fact helpful. Good day!"
Advertising agencies in pakistan

devindennis said...

I just adulation how you write. Reading your blog for me is like sitting down and accepting a chat with you. You consistently accomplish me smile and you accept a way with words. Just anticipation I'd acquaint you in case you didn't know. :-)
Advertising agency

Unknown said...

Brilliant blog posting. I begin your column actual interesting; I anticipate you are a ablaze writer. I added your blog to my bookmarks and will acknowledgment in the future...
Website designing

Unknown said...

"I accept been account your posts regularly. I charge to say that you are accomplishing a absurd job. Please accumulate up the abundant work."
Website development

Unknown said...
This comment has been removed by the author.
Unknown said...

hey i am appreciate your code its very good for developer. can u help how to download this code?

Website development bangalore said...

we had a lot of fun to browse through all the links although there which don't work anymore.
web design company

Unknown said...

Nice post,it is very use ful blog .We are one of the leading Web designers in Chennai.Our services are Website design , development , mobile apps development , internet marketing etc.

ashu12 said...

hello I got the following error while I opening the next file

Notice: Undefined index: data in C:\xampp\htdocs\series\index3.php on line
Notice: Undefined index: val in C:\xampp\htdocs\series\index3.php on line

pls help me...

ashu12 said...

hello I got the following error while I opening the next file

Notice: Undefined index: data in C:\xampp\htdocs\series\index3.php on line
Notice: Undefined index: val in C:\xampp\htdocs\series\index3.php on line

pls help me...

devindennis said...

Hi… that was great stuff.. I really like this subject. Could you tell me more … I would love to explore.
advertising agencies

devindennis said...

Actually have a very nice blog, I wish I could see everything you have all the time, I'm really entertained by your comments, and best wishes for your blog...
advertising agencies in islamabad

Unknown said...

Excellent read, I just passed this onto a colleague who was doing a little research on this topic.
advertising agencies in karachi

Unknown said...

Usually I do not post comments on blogs, but I would like to say that this blog really forced me to do so! Thanks, for a really nice read...
Best advertising agency in Pakistan

devindennis said...

Hi, acknowledge you for administration this abundant info. Was just browsing through the net in my appointment and happened aloft your blog. It is absolutely actual able-bodied accounting and abdicate absolute in answer with a actual simple language...
Cheap office furniture | Best office furniture

blaircraig said...

Hey, acceptable post! Here is nice vibram 5 feel administration with you, just enjoy! I affiance it will not let you down! So don't absence it!..
Customized office furniture

Unknown said...

This is a great blog, I like this content it is very great and enlightening, 70-487, 70-496, MB5-700, I am sure that this content will be very much useful for individuals. Please visit my personal website and let me know if you want to suggest anything

Ducen said...
This comment has been removed by the author.
Ducen said...

While Reading this post me i have got some diplomatic ideas related to programming languages they are the only way to find the best in Web design services and industrial services thanks for the share.

Unknown said...

There’s visibly a new bundle in order to identify relates to this. I just believe you’ve made various good points inside elements likewise.
pakistani matrimony | pakistani matrimonial | pakistani matrimonial sites | pakistani rishtay

web design company said...

This excellent website truly has all the information and facts I wanted concerning this subject and didn't know who to ask.Web Designing Companies in Bangalore

Unknown said...

Really good one.

website design company bangalore

dolinna said...

Congratulations for this wonderful reading article. I found it very informative and interesting too, I think you are a brilliant writer. I have bookmarked your blog and will return in the future. I want to encourage you to continue that marvelous work, have a great daytime!I am a china tour lover,You can learn more: China travel service | China travel packages | China Asia travel

web design company said...

Thanks for discussing useful publish regarding actions for database. I appreciate for that. I study you blog and understand new factors.Web Development Company Bangalore

Unknown said...

Thanks Dude!!! You had shared a very good information.Here after i will be a regular follower for your blog.

Hosting Reviews

Unknown said...

Its really a very good tutorial, thanks to share this with us.I hope its very helpful for the beginner to make their site more attractive and better functionality.
Website Development Company in India

Sevgisiir said...

a simple tire search system

sohbet odaları

Sevgisiir said...

p By Step เป็นไทยด้วยได้ไหมอ่าครับ

sohbet odaları

Unknown said...


Nişantaşı Çilingir
Beykoz Çilingir
Bayrampaşa Çilingir
Bahçelievler Çilingir

Unknown said...


Nişantaşı Çilingir
Beykoz Çilingir
Bayrampaşa Çilingir
Bahçelievler Çilingir

devindennis said...

I enjoyed your entries on Toxic Words - such great thoughts and a wonderful reminder to watch the words I use - to be positive and kind and use words to build up rather than tear down. :)

cosmetic surgery in pakistan | cosmetic surgery in lahore | cosmetic surgery for skin

ahmed said...

Really good one.
AESTHETICS

ahmed said...

Hi, I like this script a lot, but I am having trouble with doing my own variation of a drop down box system.
free chat online

ahmed said...

oh my god finally i found some one who can understand what are he talking about ..you helped me so so much thanks أندرويد 4.4.2 كيت كات

ahmed said...

online games for kids

play online games for kids

fun online games for kids

ahmed said...

free games

Zulus Zoo

Youre The Boss

Zombie Girl Dress Up

James Pinner said...

Zeribet El Oued| زريبة الوادي

ahmed said...

فتح الواتساب وفايبر والفيس بوك فى العراق بعد الحجب

طريقة فتح الفيس بوك واليوتيوب فى العراق بعد الحجب

تشغيل أندرويد على الكمبيوتر ويندوز وماك

أسرار الربح من أدسنس

طريقة لتسريع جهاز S4

تغيير الـ IP في 5 دقائق بدون برامج ولامواقع

خاتم إلكتروني يقوم بمهمة نقل كلمة السر عبر لمس الشاشة

بث مباشر لمباريات كأس العالم البرازيل 2014

واتساب بلس

الفيس بوك

zizo tech said...

تعليم اللغة العربية
الارقام باللغة العربية
تعليم الارقام باللغة العربية
تعليم الارقام للاطفال

ahmed said...

طريق الاحتراف

ahmed said...

موقع زواج

بحث تفصيلى

اجابات

ahmed said...

حراج بن قاسم

ahmed said...
This comment has been removed by the author.
ahmed said...

ألعاب فلاش موضوع

flash games

ahmed said...

Cadeaux au Maroc

site spécialisé dans les cadeaux personnalisés

idées cadeaux personnalisés

idée cadeau pour femme

cadeau pour homme

cadeaux pour enfant

cadeaux anniversaire

cadeaux saint Valentin

Unknown said...


صور مشبات
ديكورات مشبات
مشبات
مدافئ
شوايات
غرف تراثية

Unknown said...

hey nthanks for that great and awesome article



تحميل برنامج فوتوشوب



شوايات

مدافئ

مشبات
غرف تراثيةم

elss said...
This comment has been removed by the author.
seoamine said...

hey great article i just want to tell you thanks for that great article bro

workout schedule for men

seoamine said...


السيارات المستعملة



hi i just want to telll uou thanks for that great article

Unknown said...

hi i just want to telll uou thanks for that great article

روم

Unknown said...

تسوق

Unknown said...


thanks for tyhat great article
technology and apps

seoamine said...




you can check that aweome music
Laura Pausini It's Not Goodbye

Unknown said...

I must say,It is a great reminder that there is always room for improvement. Thanks for the great examples and inspiration.
Nursing Essays

ahmed said...

تحميل العاب مضغوطة

العاب الكمبيوتر

تحميل ألعاب

download games compressed pc

ahmed said...

استشارات طبية مجانية

نصائح و معلومات طبية

ahmed said...

Tourism Guide Blog

Tourism Blog Tourism

ment to publish reports

of the most important tourist attractions

its attempt to create a reference

to an individual tourist fotions

Memorial Monument

tourist places

hotels and tourist accomodation

ahmed said...

streaming vf

streaming gratuit

film complet vf

ahmed said...

بوستات

منشورات

بيع

شراء

سوق

فيس بوك

الفيسبوك

فيسبوك

تسويق

اعلان

ترويج

اشهار

نشر

ahmed said...

اسعار ومواصفات هاتف تكنو tecno R7 smart phone

أسعار ومواصفات هاتف أل جى LG G3

كيفية نشر أدعية وحكم بشكلٍ تلقائي على فيس بوك وتويتر

أسعار ومواصفات هاتف جلاكسى جراند 2 galaxy grand

طريقة تشغيل تطبيقات وألعاب الأندرويد على الكمبيوتر

طريقة تشغيل تطبيق فايبر Viber على الكمبيوتر

طريقة فتح اكثر من حساب على الفيس بوك للأندرويد

تطرح أبل هاتفها الجديد ايفون 6 iphone فى اكثر من 20 دولة

أفضل 5 طرق لتسريع هاتفك الأندرويد

تحميل واتساب whatsapp مجانا

فيس بوك تنفق الملايين على الواتساب WhatsApp بلا مقابل

تطبيقات لكسب المال عبر هاتفك الذكي

الواتساب والسبب وراء شراء الفيس بوك له ب19 مليار دولار

الفكرة وراء تأسيس الفيس بوك

موبايل سامسونج كور 2 Samsung Galaxy Core

نوكيا تغرد بأجهزتها الجديدة في جيتكس 2014

تعرف على كل ما يخص الأيفون بدايته وإصداراته

تقنية

اعشق انفاسك

Unknown said...


ماجستير

ماجستير تربية

ماجستير ادارة اعمال

مدونة ليبياتنا

مدونة ليبياتنا إخبارية

Abo omar said...

كشف تسربات المياه

شركة تسليك مجاري بالدمام

شركة تنظيف شقق بالرياض

شركة تخزين اثاث بالرياض

شركة تنظيف منازل بالرياض

شركة تنظيف خزانات بالرياض

شركة نظافة بالرياض

شركة تنظيف بالرياض

شركة نقل اثاث بالرياض

شركة تنظيف مجالس بالرياض

شركة تنظيف فلل بالرياض

كشف تسربات المياه بجدة

شركة تنظيف بجدة

Abo omar said...

كشف تسربات المياه

شركة تسليك مجاري بالدمام

شركة تنظيف شقق بالرياض

شركة تخزين اثاث بالرياض

شركة تنظيف منازل بالرياض

شركة تنظيف خزانات بالرياض

شركة نظافة بالرياض

شركة تنظيف بالرياض

شركة نقل اثاث بالرياض

شركة تنظيف مجالس بالرياض

شركة تنظيف فلل بالرياض

كشف تسربات المياه بجدة

شركة تنظيف بجدة

ahmed said...

تقنية

أندرويد

تطبيقات

الفيس بوك

دنيا التقنية

الأخبار التقنية

Unknown said...

al posts have been kinda borin

Unknown said...

A blog like yours be supposed to been present acquiring sign Hotel Di Jakarta Pusat Cream Pemutih Produk Pemutih Muka online shop baju korea tas import Rumah Dijual Alam Sutera Rumah Bintaro Apartemen Alam Sutera Apartemen Tangerang Rumah Alam Sutera Rumah Tangerang

GΛNESH said...

I think its better to download a cities database from WorldCitiesDatabase.com .. its less costly and more accurate as well.

Unknown said...

come more formerly again since exactly t Krim Pemutih Pemutih Kulit Krim Pemutih Muka baju gamis pusat grosir baju Rumah Dijual Bintaro Rumah BSD Rumah Dijual BSD Rumah Gading Serpong Rumah Dijual Gading Serpong

Unknown said...

Great Information sir.
thanks
Read about technology here
hire php developers india

Unknown said...

Great post
thanks
hire Magento Developer

Unknown said...

Best School Management System

شركة الوسام لخدمات التنظيف ونقل الاثاث ومكافحة الحشرات مع الضمان said...



شركة تسليك مجارى بالرياض
شركة تنظيف بالرياض
شركة تنظيف خزانات بالرياض
شركة تنظيف شقق بالرياض
شركة تنظيف مجالس بالرياض
شركة رش مبيدات بالرياض
شركة مكافحة النمل الابيض بجدة
شركة مكافحة حشرات بالرياض
شركة نقل اثاث بالرياض
شركة جلي بلاط بالرياض
شركة جلي رخام بالرياض

Unknown said...
This comment has been removed by the author.
Unknown said...

Great tutorial and script - only problem I am having is when viewing the dropdown lists in IE - they slide all the way to the top of the screen - any suggestions?

Thanks
Vapes
Magento customisation

احتراف سيو said...

احتراف سيو

السيو

سيو

تخفيض ترتيب alexa

طريقة عمل وصف لكل قسم فى مدونة بلوجر لزيادة الارشفة

دروس السيو » أحصل على أرشفة يومية لموقعك من محرك البحث جوجل - للمبتدئين

مواقع البينج و أرشفة المواقع ping

البلاك هات سيو و تعريفه و اثره على موقعى و كيفية تفاديه

تحميل برنامج backlink beast لزيادة الباك لينك مع الشرح

برنامج الفوتوشوب اونلاين عربى 2015

سر الدلائل الاجنبية فى زيادة سرعة الارشفة

اقوى الدلايل الاجنبية فى العالم

مسك الكلمات فى جوجل

[سيو] اضف موقعك فى اكبر مواقع السوشيال بوك مارك Social

أكسب ارشفة قوية لموقعك مع مواقع النشر اللحظية

برنامج directory power submitter لنشر المواقع مجانا


اطلق حملتك التسويقية فى 1000 منتدى و اكثر

Unknown said...

شركة رش مبيدات بالدمام
شركة تسليك مجاري بالجبيل
شركة تسليك مجاري بالاحساء
شركة مكافحة حشرات بخميس مشيط
شركة تنظيف خزانات بخميس مشيط
شركة تنظيف فلل بخميس مشيط
شركة مكافحة حشرات بالجبيل
شركة مكافحة حشرات بالاحساء
aladawy

Unknown said...

Cup of Nations. He also additional to hi rumah sakit di jakarta utara beli rumah murah di jakarta rumah dijual murah di jakarta rumah murah di jakarta utara rumah jakarta dijual cicilan rumah murah di jakarta over kredit rumah jakarta timur sewa rumah jakarta disewakan rumah di jakarta perumahan jakarta timur rumah disewa jakarta rumah btn di jakarta timur jual rumah murah di jakarta timur kredit rumah di jakarta timur rumah jual jakarta rumah kontrakan murah jakarta timur harga rumah di alam sutera serpong rumah di alam sutera rumah dijual alam sutera olivia rumah dijual di alam sutera serpong

Unknown said...

iums have skyrocketed, says Paul Brown, dijual apartemen list apartemen di jakarta apartemen dikontrakan harga sewa apartemen cari apartemen murah apartemen disewakan harian sewa apartement cari sewa apartemen apartemen termurah di jakarta apartemen harian jakarta apartemen harian di jakarta daftar harga apartemen jual beli apartemen jakarta apartemen dijual murah apartemen murah di jakarta dicari apartemen apartemen apartemen sewa harian jakarta daftar apartemen di jakarta

Unknown said...

ely understand how to bring a problem to dijual rumah icon bsd city dijual rumah di icon bsd harga rumah kencana loka bsd rumah kontrakan murah di bsd rumah disewakan di bsd jual rumah murah di bsd rumah dijual di nusa loka bsd harga rumah di nusa loka rumah di bsd icon rumah di bsd 2011 harga rumah nusa loka bsd rumah bsd kencana loka rumah dijual gading serpong sektor 1 rumah dijual di bsd tangerang rumah dijual di bsd serpong rumah dijual di bsd rumah dijual bsd rumah baru bsd city harga sewa rumah di bsd city sewa rumah di foresta bsd

Unknown said...

ovide me a lot of fodder for thought. On dijual rumah gading serpong sektor 1c rumah dijual gading serpong sektor 7a rumah dijual alam sutera jual rumah alam sutera harga rumah di alam sutera rumah dijual alam sutera jual rumah di alam sutera 2011 harga rumah alam sutera serpong rumah murah dijual di alam sutera rumah dijual murah bintaro cari rumah rumah main bintaro apartemen sewa di jakarta apartemen jakarta dijual adalah apartemen dijual di jakarta sewa apartemen di jakarta sewa apartemen murah di jakarta apartemen jakarta 2014 jual apartemen jakarta sewa apartement di jakarta

Unknown said...

it doesnt disappoint me as significantl alam sutera serpong alam sutera tangerang bintaro 1 bintaro jaya sektor 9 bintaro perumahan bintaro sektor 1 bintaro sektor 4 bintaro sektor 9 bintaro tangerang cari rumah cari rumah bintaro cari rumah di jakarta timur cari rumah di jual cari rumah disewakan cari rumah murah di bintaro cari sewa rumah cluster darwin cluster flamboyan alam sutera cluster murah di bintaro daerah bintaro

Unknown said...

uple of of the weblo jasa bangun rumah jasa desain jasa desain arsitektur jasa desain furniture jasa kontraktor jasa kontraktor contblock jasa kontraktor cor hotmix jasa kontraktor drainase jasa kontraktor instalasi listrik jasa kontraktor drainase jasa kontraktor instalasi listrik jasa kontraktor landscape jasa kontraktor waterproofing jual material bangunan jual baja ringan jual bata Jasa Bangun Rumah Tentang JRB Multipro Indonesia Arsip JRB Multipro Indonesia tanya jawab bangunan

Unknown said...

access consistently jasa kontraktor landscape jasa kontraktor waterproofing jual material bangunan jual baja ringan jual bata Jasa Bangun Rumah Tentang JRB Multipro Indonesia Arsip JRB Multipro Indonesia Jual Rumah Jakarta Jual Rumah di Jakarta alam sutera serpong alam sutera tangerang bintaro 1 bintaro jaya sektor 9 bintaro perumahan bintaro sektor 1 bintaro sektor 4 bintaro sektor 9 bintaro tangerang cari rumah

Ahmed Elshafey said...



تعتبر مؤسسة الأمجاد من أفضل شركات النظافة العامة بالدمام والأحساء في مجال التنظيف فنحن ننظف الفلل والمنازل والشقق والشركات والمحلات بدقة وجوده عالية جدا , لدينا عمالة ماهرة مدربين وذو كفاءة وخبرة عالية , كما أننا ننظف أيضا المجالس والموكيت وواجهات المنازل ونقوم بغسيل جميع أنواع الموكيت والستائر والسجاد وإزالة أصعب البقع الموجوده عليها بسهولة تامة لأننا نستخدم معدات وأدوات حديثة جدا ليس لها أي ضرر على الإنسان .
شركة الأمجاد
شركة مكافحة حشرات بالدمام
شركة تسليك مجارى بالدمام
شركة كشف تسربات المياه بالدمام
شركة عزل اسطح بالدمام
شركة تنظيف بالدمام
شركة تنظيف بالرياض
شركة تنظيف خزانات بالرياض
شركة نقل اثاث بالرياض
شركة مكافحة حشرات بالرياض
شركة رش مبيد بالرياض
شركة تسليك مجارى بالرياض

ابو السيد said...




الكثير منا يعانى من طرق النظافه القديمه المتعبه والمؤلمه ودعا لهذا النوع من النظافه الان مع شركة الكمال المتخصصه فى جميع اعمال التنظيف بالطرق ولالات الحديثه التى تحتوى على عمال ماهرون ومدربون وعندهم خبره عاليه فى اعمال التنظيف كما انها يوجد لديها عمال ماهرون ومدربون الى اعله مستوى من المستويات وان شركة الكمال يوجد لديها خدمات اخرى
مثل تسليك المجارى وعزل خزانات ونقل اثاث ورش مبيدات ومكافحة حشرات فى جميع المملكه العربيه السعوديه

شركة الكمال

شركة تنظيف فلل بالرياض

شركة تنظيف فلل بالدمام

شركة تنظيف فلل بالطائف

شركة تنظيف فلل بجازان

شركة تنظيف فلل بحائل







شركة تنظيف شقق بالرياض

شركة تنظيف شقق بالدمام

شركة تنظيف شقق بالطائف

شركة تنظيف شقق بجازان

شركة تنظيف شقق بحائل

Unknown said...

Good article
Web Application Development Company

Unknown said...

Great post. Keep it up. It is wonderful information for me.

web developer thailand
seo thailand
website design bangkok

CompuServ said...

https://www.adwhit.com/

asmaa ahmad said...

شركة كشف تسربات المياه بالقطيف
مشكله تسربات المياه من اصعب المشاكل التي قد تواجهك حيث يصعب عليك تحديد مكان التسرب بالطرق العاديه دون التكسير
في الحوائط والجدران ولكن مع شرطتنا لا داعي الي التكسير فاشركتنا لديها معدات عالميه تساعد
شركتنا تعمل علي تطوير نفسها اول باول حتي تنال اعجاب عمللائنا شركتنا تقدم افضل الاسعار التي تناسب جميع العملاء
يوجد لدي الشركة فريق عمل مدرب علي ايد خبره في مجال كشف التسربات لا داعي لقلق من الان فاشركتنا سوف تعمل علي راحتك دائما
اذا كان جدران منزلك تلف فيها الطلاء بسبب زياده نسبه الرطوبه او ازداد انتشار الحشرات داخل منزلك بشكل كبير
واصبح البلاط والجدران مليئه بالماده الجيريه وقل ضغط المياه اليك فلا داعي لقلق ما عليك الا سوء التعامل مع شركة كشف تسربات المياه بالطقيف
واتركي لها زمام الامور فالشركه هدفها ان تكون الاولي في مجال كشف التسربات كما ان الشركة عمل علي نصائح العملاء دائما
ودراستها وحلها شركتنا تقدم افضل الاسعار التي تناسب جميع عملائيها فلا داعي لقلق مع شركة كشف تسربات المياه بالقطيف
شركتنا لديها طاقم عمل يجيد التعامل مع اي نوع من انواع التسربات فقط قومي بالتعامل معانا

mohamed said...



سحر اللمسات افضل شركة جبس بورد بالرياض وتعمل في مجال الديكورات الجبسيه في الرياض ولديها افضلشركة جبس بالرياض
وتعمل جميع أنواع جبس بورد الرياض ولديه فروف في أفضلشركة تنسيق حدائق بالرياض ومن أفضل شركات
للاتصال0500958844 0500958844





شركة زهرة العلا said...


شركة نقل اثاث بالدمام

شراء اثاث داخل الرياض

شركة نقل اثاث بالرياض

شركة نقل اثاث بجدة

شركة تخزين اثاث بالرياض

شركة تركيب غرف نوم بالرياض

كشف تسربات المياة بالدمام

شركة كشف تسربات المياه بالباحة

Ancy merina said...

This is really a valuable post. Nice to find and read. The info shared is helpful and valuable. Will grab it. Thank you for sharing.
Website Development Company Bangalore
Website Design and Development Companies in Bangalore
eCommerce Website developers in bangalore
Outsource magento ecommerce services india

Vistas AD Media said...

Really a great post. Appreciate the effort in educating us.
We Are also providing Web Design Company in Bangalore | Digital Marketing Company in Bangalore - Vistas AD Media

5689 said...

zzzzz2018.8.24
louboutin shoes
new nike shoes
nike huarache femme
ralph lauren uk
hermes belts
louboutin outlet
coach outlet
vibram fivefingers
nike air max 95
supreme shirt

Arun Kumar said...

Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
SEO company in coimbatore
SEO company
web design in coimbatore

«Oldest ‹Older   1 – 200 of 214   Newer› Newest»