你问的是javascript问题,不是PHP问题,下面是解决代码
<input name="textfield" type="text" id="textfield" onmouseover="document.getElementById('out').innerHTML=this.value" value="abc"/>
<div id="out"></div>
<input name="textfield" type="text" id="textfield" onmouseover="document.getElementById('out').innerHTML=this.value" value="abc"/>
<div id="out"></div>
这样?