Hi,need your help!
Suppose there are two menu lists in a form called A and B.How can I get this?When I select an item in A,a query is submitted to mysql and the result is displayed in B?
Can you please be more specific? A form is submitted via POST or GET and the data is available as an array on the new page.
Or do you want to be more dynamic? With javascript or so?
Everytime A is changed you want to query the database? mcvdmvs
"It never hurts to help" -- Eek the Cat
PHP run server side so, if you want to change B according to A, you must do a refresh, or, fill B with Javascript. Javascript is a client side language.
To do a fill with JS, you must load everything in B to the JS, and then, when you pick the value from A, you fill B with the data you already got from the load of the page. That's not a good policy. The best way is changing A, you do a form submit and then you fill B.
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.