我处于一个有cURL问题的车辙。该职位的工作马丽娟,数据张贴只是罚款和接收正常,但发布页面的URL执行卷曲会议结束后不会出现在浏览器中,例如看看下面的代码:php cURL POST如何关注位置
$ch = curl_init("http://localhost/eterniti/cart-step-1.php");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "error=1&em=$em&fname=$fname&lname=$lname&email1=$email1&email2=$email2&code=$code&area=$area&number=$num&mobile=$mobile&address1=$address1&address2=$address2&address3=$address3&suburb=$suburb&postcode=$postcode&country=$country");
curl_exec($ch);
curl_close($ch);
的发布工作正常,我被带到cart-step-1.php,在那里我可以处理发布的数据,但浏览器的URL地址栏中的位置仍然是脚本页面的位置,在这种情况下,proc_xxxxxx.php
任何想法如何获得URL地址,以反映我实际上POSTED到的页面?
谢谢你需要做的是在HTML这种情况下磨
该页面你什么意思?你的代码完全在服务器端工作。你想重定向到生成的网址吗? – 2010-04-09 11:59:21