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

WBOY
Release: 2016-06-13 13:25:03
Original
799 people have browsed it

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





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



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

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

请各位指点一下,谢谢了

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

echo "".$id."";?>
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!