这是我的代码:
$post_url="Location: http://webservices.plattformpartners.com/ilm/default.ashx?firstname=".$firstname."&lastname=".$lastname."&address=".$address1."&address2=".$address2."&zip=".$zip."&city=".$city."&state=".$state."&country=".$country;
header($post_url);
Run Code Online (Sandbox Code Playgroud)
http://gedforadults.com/ 在这个页面上我正在使用它.
并且我在表单提交后重定向时收到此错误.警告:标题可能不包含多个标题,检测到新行.在第60行的/home/gedforad/public_html/index.php中
那么有没有办法用很多变量重定向它?当我在一个或两个变量中使用它时,它正确地重定向,但在很多变量内它的生成错误.
提前致谢.
阅读错误:"检测到新行".
我认为问题不是太多变数.你的一个变量中可能有一个新行.首先尝试编码您的网址,它应该可以正常工作:http: //php.net/manual/en/function.rawurlencode.php
| 归档时间: |
|
| 查看次数: |
5691 次 |
| 最近记录: |