search

Home  >  Q&A  >  body text

php - 这个跳转哪里写的不对呢?

报这个错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中文网2794 days ago767

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-10 16:53:50

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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-10 16:53:50

    楼上正确答案。

    reply
    0
  • Cancelreply