Home  >  Article  >  Backend Development  >  请问window.open向php页面传值的有关问题

请问window.open向php页面传值的有关问题

WBOY
WBOYOriginal
2016-06-13 13:25:03794browse

请教window.open向php页面传值的问题
请教各位一个很基础的问题





...
...
$id=$info[station_code];
echo "".$id."";?>



页面中只要查询出来的是纯数字就可以正常的传值,并且打开页面;如果包含了字母,那么就会报为定义错误;

子页面中使用的是
$id=$_get["id"];
?>的方式来获得传递值

请各位指点一下,谢谢了

------解决方案--------------------
window.open('detail.php?id='+id,...

echo "".$id."";?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn