Hi
what i want to do is pass a php variable in a script i've already got a drop down list
now what i want to do is as soon as you click on any province in the drop down menu the cities appear in the text area. what is happening now iz i have to put the id in the writeclass function which iz kinda not what i want.
heres the code of the funtion
<form name="myform">
<select name = "province" onChange="onChangeDropBox();">
<? populateDropBox(); ?>
<textarea name ="textArea" readonly="true"></textarea>
</form>
<script type="text/javascript">
function onChangeDropBox()
{
var selected =0;
selected = document.myform.province.value;
var t = "<? writeCities(9);?>";
document.myform.textArea.value = t;
}
</script>
thanxx in advance!!!!