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

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

WBOY
Release: 2016-06-13 10:32:05
Original
950 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