【发布时间】:2012-07-29 01:12:13
【问题描述】:
我已经构建了一个包含大约 90 个值的表单提交。表单需要提交到另一个页面,该页面具有处理最后一部分的 curl 会话。我的问题是,当我提交该表单时,如何将 $_Post[] 数据作为 整个数组 访问,以便我可以将其作为 curl post 数组提交?
需要得到
<form name="send" action="process.php" method="post">
<input 1>
<inpit 2>
...
<input 90>
</form>
到
process.php:
curl_setopt( $ch, CURLOPT_POSTFIELDS, $_Post[] );
还是像放 $Post[] 一样简单?
【问题讨论】:
-
你可以只用 $_post 而不是 $_post[] 得到整个数组