首页  >  文章  >  后端开发  >  这句话里面有错误吗?

这句话里面有错误吗?

WBOY
WBOY原创
2016-06-06 20:18:011247浏览

header("location:http://localhost/tieba3.php?title=.$v['title'].");

回复内容:

header("location:http://localhost/tieba3.php?title=.$v['title'].");

<code>header("location:http://localhost/tieba3.php?title=".$v['title']);
</code>

注意引号位置

header("location:http://localhost/tieba3.php?title=".$v['title']);

<code>header("location:http://localhost/tieba3.php?title={$v['title']}");

变量加花括号引用。</code>

http://php.net/manual/zh/language.types.string.php 可以看看 巩固一下

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn