php - 这个跳转哪里写的不对呢?
PHP中文网
PHP中文网 2017-04-10 16:51:50
0
2
734

报这个错Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)

echo "<script>history.go(-1);location = 'blog3.php?id=$_POST['reid']';</script>";
PHP中文网
PHP中文网

认证0级讲师

reply all(2)
PHPzhong
echo "<script>history.go(-1);location = 'blog3.php?id=".$_POST['reid']."';</script>";
洪涛

楼上正确答案。

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!