NEED HELP! "php with javascript"

Links for php scripts

Moderators: macek, egami, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Re: NEED HELP! "php with javascript"

Post by Oleg Butuzov » Wed Jan 29, 2003 1:09 am

Code: Select all

<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>

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest