【发布时间】:2011-07-21 12:53:01
【问题描述】:
任何人都知道为什么:
class Booking extends Controller {
function booking()
{
parent::Controller();
}
function send_instant_to_paypal()
{
print_r($_POST);
echo '<hr />';
print_r($this->input->post());
echo '<hr />';
$id_booking = $this->input->post('id_booking');
$title = $this->input->post('basket_description');
$cost = ($this->input->post('fee_per_min') * $this->input->post('amount'));
echo $id_booking;
echo $title
echo $cost
}
}
将在 CI 中为 $_POST 回显 post 变量 但不适用于 $this->input->post();?
我有 $this->input->post() 正在使用并在网站其他地方的搜索页面上工作......但在这个页面上,它不起作用.. 这是我的表格...
这是精神上的;-p 有人发现我遗漏了什么明显愚蠢的东西吗?
【问题讨论】:
-
CI2.1 还是 CI1.X?看起来像 CI1,这意味着您对
$this->input-post()的调用是错误的
标签: codeigniter post