需要将php值传递给javascript


need to pass the php value to javascript

可能重复:
如何将JavaScript变量传递到PHP?

下面是我的代码:

function disablefields(){ 
var suresh=[<?php echo $cryo_1kl_18_orig_jan; ?>];
if (document.getElementById('checkboxA').checked == 1){
document.getElementById('cryo_1kl_18_rev_jan').disabled=''; 
document.getElementById('cryo_1kl_18_rev_jan').value='**i want pass the php value here**';
}

我想将php值传递给javascript。。。

document.getElementById('cryo_1kl_18_rev_jan').value='<?php echo $php_value;?>';
function disablefields()
{ 
     var suresh=[<?php //echo $cryo_1kl_18_orig_jan; ?>];
    if (document.getElementById('checkboxA').checked == 1) {
        document.getElementById('cryo_1kl_18_rev_jan').disabled=''; 
        document.getElementById('cryo_1kl_18_rev_jan').value='<?=$your_value?>';
    }