![]() |
| ||
| Dynamic drop down list not working Hey, I'm trying to create a dynamic drop down box where the first drop down box populates the second drop down, but it isn't working. I have two tables; pricelist with fields, -id -groupname -item -price groups with fields, -id -groupname I've got the code and to me it looks as though it completely works, but i think its the fact that two of the fields have the same name, and it's causing problems. index.php <html> findcity.php <select name="item"> When i select an option in the first drop down box, it populates the second with all the values in the table, not just the selected ones. Cheers |
| ||
| Re: Dynamic drop down list not working Well for both files you aren't ending your option tag when you generate them, it may not be what's causing the problem but it's incorrect nonetheless |
| ||
| Re: Dynamic drop down list not working Yea i know, i purposely left them off, to save space. What other problems have you seen with my code? |
| ||
| Re: Dynamic drop down list not working Sorry, I actually laughed at that. Leaving off the end tag makes the HTML invalid, and can cause cascading errors. |
| ||
| Re: Dynamic drop down list not working *bump* |
| All times are GMT -4. The time now is 3:38 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC