就是比如Indexaction.php中定义是这样的
$this->display("./Tpl/Index/index.html");
$log = R('Getdata/log',array('1',$who,'追溯查询','追溯查询',$id,'查询成功'));
而我在index.html中,
想这样写
<sc
try{
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
//window.location.href="index1.asp";
<?php
$who='手机用户';
?>
}else{
<?php
$who='电脑用户';
?>
//window.location.href="index2.asp";
}
}catch(e){}
</sc
我想问,怎么样把$who从html中传到php中。
最佳答案
