Hi,
i'm trying to affect a php variable from a db to a javascript variable and it seems like i don't do the right thing...
Anyone can help me?
Thanks
Patrice
---------------------------
<SCRIPT LANGUAGE=javascript>
<!--
function CompareToList(){
to_select = <? '.$row[Question_Secrete_value ].' ?>;
for(i=0;i<document.form1.QuestionSecrete.length;i++){
strText = document.form1.QuestionSecrete[i].value;
if(to_select==strText){
document.form1.QuestionSecrete.options[i].selected = true;
break;
}
}
}
//-->
</SCRIPT>


