Re: [PHP] dependable combo boxes with mysql database (Solved)
I have got it done. Below is the code: - Service Select Service"); } else { print("$ser"); } ?> Product $a"); } else { print("$prd"); } ?> Nature of Problem Select Problem"); } else{ print("$prb"); } ?> - regards, Bhoomi --- "Pranav Negandhi (concept-I)" <[EMAIL PROTECTED]> wrote: > This might be slightly OT on this list, but here > goes nothing. > > 1. Submit the form when the user shifts focus from > D1 using Javascript's > onBlur event > 2. On the server side, use PHP to retrieve the > values for D2 and > generate the page again > 3. Repeat 1 & 2 when the value of D2 changes. > > HTH > Pranav > www.concept-i.co.in > > > Bhoomi Vora wrote: > > Hello All, > > > > I have a php page which contains three combo > boxes. > > The first one will have the value > > > > from the mysql database table on page load itself. > > > > Then depending upon the value selected in the > first > > combobox the second combo box > > > > should be populated with the respective values > from > > another mysql database table, and > > > > once again depending upon the value selected in > second > > combobox the third combobox > > > > should be populated with the respective values > from > > one more different database table. > > > > I have read through mailing list and also searched > in > > google and found that it can be > > > > done with javascript onblur function but nothing > is > > working. Here is the code: > .d similarly > > D3 should be populated on event like 'onblur' to > D2. > > > > Pl. give me the exact code or proper guideline how > > should I accomplish this on the same page. > > > > Appreciate your replies. > > > > Thanks and regards. > > > > BJV > > > > > > > > __ > > Yahoo! FareChase: Search multiple travel sites in > one click. > > http://farechase.yahoo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dependable combo boxes with mysql database
Hello, Thanks for the reply. But I do not know how to integrate javascript with php and mysql. I mean javascript can be written using code and fetching data from mysql is using $query,$result and $mysql_fetch_array. I am confused how to integrate this in php page. If anybody can help on this i will highly appreciate it, otherwise if this is not the proper question for this list then i have to go for other options. Thanks and regards, Bhoomi --- "Pranav Negandhi (concept-I)" <[EMAIL PROTECTED]> wrote: > This might be slightly OT on this list, but here > goes nothing. > > 1. Submit the form when the user shifts focus from > D1 using Javascript's > onBlur event > 2. On the server side, use PHP to retrieve the > values for D2 and > generate the page again > 3. Repeat 1 & 2 when the value of D2 changes. > > HTH > Pranav > www.concept-i.co.in > > > Bhoomi Vora wrote: > > Hello All, > > > > I have a php page which contains three combo > boxes. > > The first one will have the value > > > > from the mysql database table on page load itself. > > > > Then depending upon the value selected in the > first > > combobox the second combo box > > > > should be populated with the respective values > from > > another mysql database table, and > > > > once again depending upon the value selected in > second > > combobox the third combobox > > > > should be populated with the respective values > from > > one more different database table. > > > > I have read through mailing list and also searched > in > > google and found that it can be > > > > done with javascript onblur function but nothing > is > > working. Here is the code: > .d similarly > > D3 should be populated on event like 'onblur' to > D2. > > > > Pl. give me the exact code or proper guideline how > > should I accomplish this on the same page. > > > > Appreciate your replies. > > > > Thanks and regards. > > > > BJV > > > > > > > > __ > > Yahoo! FareChase: Search multiple travel sites in > one click. > > http://farechase.yahoo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [php] dependable combo boxes with mysql database
Hello All, I have a php page which contains three combo boxes. The first one will have the value from the mysql database table on page load itself. Then depending upon the value selected in the first combobox the second combo box should be populated with the respective values from another mysql database table, and once again depending upon the value selected in second combobox the third combobox should be populated with the respective values from one more different database table. I have read through mailing list and also searched in google and found that it can be done with javascript onblur function but nothing is working. Here is the code: -- $row[0]"); } } ?> Untitled Page : : : Service Product Nature of Problem Complaint Registration Upper Middle Lower Problem Description : Severity of Problem : -- In the above code there are three combo box namely D1, D2 and D3. D1 will be populated on pageload. Now D2 should be populated on event like 'onblur' to D1 and similarly D3 should be populated on event like 'onblur' to D2. Pl. give me the exact code or proper guideline how should I accomplish this on the same page. Appreciate your replies. Thanks and regards. BJV __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php