I can manage to get values from mysql using select box in php, but i can’t make it with two-level chained select box.
Anyone have some example code or idea for that?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re trying to handle clientside stuff, so you’ll need to do this with javascript.
In javascript you create a function:
I haven’t tested the code, but it should do 😉
Edit I’ve misread your post, but a similar thing can be done by setting it to selectboxes, only then you can fill it with the correct data when the first selctbox is selected to a specified index or something.