PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Now about this program.... I have selected two columns from the data base. in $row[0] test_id is there, and $row[1] user_id is there. In my program my requirement is whenever i select an option from the drop down menu the corresponding $row[1] i.e user_id should be displayed on the text field, which is outside select tag.. So for that i have used javascript... but as i am new to java script i dont know much about java script.. Please help me.....
function select_this_id(obj){
//reference the input by its ID
// document.getElementByID('my_input').value = obj.value;
// edit: if you need to get the text... into the input box,
// grab the array of options, and the index and ur set
document.getElementByID('my_input').value = obj.options[obj.selectedIndex].innerHTML;
}