Heim  >  Artikel  >  Backend-Entwicklung  >  这个跳转哪里写的不对呢?

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

WBOY
WBOYOriginal
2016-06-06 20:17:241488Durchsuche

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

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

回复内容:

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

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

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

楼上正确答案。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn