0

hi Guys,
I have problem in populating dropdown list from mysql database. im using html,javascript,and mysql. im not using php.
i would like to know, how to populate dropdown list with values from mysql database...
Also, it would be better , if you tell me how to send values in a dropdown list to another html page.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by ajijacobm
0

ajijacobm,
the only way you are going to be able to use mysql with dynamic coding is by using server side code. HTML and javascript will not get what you want. You will have to use ASP, Coldfusion, PHP.. etc to achieve the results that you want. Now if you want to send a drop down box using onChange event, just use

function change() {
    select1 = document.getElementById("combo_box").value;
    location.href = 'www.something.com/' + select1;
}

Sorry if the code is a little crude, but its just to give you an idea.

0

Please specify in detail.. i dont have any idea in this section. You may please kindly refer me to a site giving the details regarding it.. i will refer it/// hope to see ur reply.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.