【发布时间】:2013-08-09 13:34:08
【问题描述】:
我有一个名为 user.php 的 https 页面,它获取数据并将其发布到另一个接收.php https 页面。我的问题是每当我提交我的数据以发布接收.php 显示服务器错误。我读过有关 cURL 的文章,但对语法没有清晰的了解。
用户.php
<form action="https://www.mydomain.com/ssl/receiving.php">
<input type="text" name="variable" />
<input type="submit" name="buttonName" />
</form>
receving.php
if(isset($_POST["buttonName"]))
{
$variable=$_POST['variable'];
}
【问题讨论】:
-
这可能与 HTTPS 无关,很可能是您的 received.php 中的错误。要获取
$_POST超全局中的数据,请将method="POST"添加到您的<form>标记中。