如何用PHP得到javascript的值
function pushBtm(K) {
switch (K){
case 'YU' :
if(CLD.SY.selectedIndex>0) CLD.SY.selectedIndex--;
break;
case 'YD' :
if(CLD.SY.selectedIndex<149) CLD.SY.selectedIndex++;
break;
case 'MU' :
if(CLD.SM.selectedIndex>0) {
CLD.SM.selectedIndex--;
}
else {
CLD.SM.selectedIndex=11;
if(CLD.SY.selectedIndex>0) CLD.SY.selectedIndex--;
}
break;
case 'MD' :
if(CLD.SM.selectedIndex<11) {
CLD.SM.selectedIndex++;
}
else {
CLD.SM.selectedIndex=0;
if(CLD.SY.selectedIndex<149) CLD.SY.selectedIndex++;
}
break;
default :
CLD.SY.selectedIndex=tY-1900;
CLD.SM.selectedIndex=tM;
}
changeCld();
}
</TBODY></TABLE></TD>
<TD align=middle vAlign=top width=40><BR><BR><BR><BR><BUTTON
onclick="pushBtm('YU')" style="FONT-SIZE: 9pt">year↑</BUTTON> //点击year↑按钮时调用'YU'
<BR><BUTTON
onclick="pushBtm('YD')" style="FONT-SIZE: 9pt">year↓</BUTTON> //点击year↓按钮时调用'YD'
<P><BUTTON onclick="pushBtm('MU')"
style="FONT-SIZE: 9pt">month↑</BUTTON> //点击month↑按钮时调用'MU'
<BR><BUTTON name=Button1 onclick="pushBtm('MD')"
style="FONT-SIZE: 9pt">month↓<?=$str?></BUTTON> //点击month↑按钮时调用'MD'
<P><BUTTON onclick="pushBtm('')" style="FONT-SIZE: 9pt">today</BUTTON>
</P></TD></TR></TBODY>
如何得到javascript中 YU YD MU MD 变量的值!