Hi I have a very simple question that i guess will result in a complicated answer. I have a mainly php page that displays a simple html country list. When a user chooses an item from the list I would like to use that chosen country and fetch an item from database depending on the country of choice. All without submitting any form. I expect javascript is involved. I have searched anywhere but can not find an answer. Appreciate your time.
Well if you want to update page without submitting your information, you have to use Ajax in your application. You can handle your selection at dropdown with Javascript but you can not connect DB and update page with Javascript. So you should learn some basic concepts on Ajax.
Hi Thanks for your reply. I do not want to connect to db using javascript. All i want javascript to do is pass on to me the chosen value in the drop down list, so that I can use it with php.
problem solved http://www.webmaster-talk.com/php-forum/20054-how-do-i-assign-javascript-variable.html