Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用CodeIgniter form_验证的空POST结果_Php_Codeigniter - Fatal编程技术网

Php 使用CodeIgniter form_验证的空POST结果

Php 使用CodeIgniter form_验证的空POST结果,php,codeigniter,Php,Codeigniter,有人能指出为什么我的表单总是无法通过验证吗? 验证不会输出任何错误,并且POST数组始终为空。 对我来说,这是被提交到错误的地方,但事实并非如此 <form action="https://www.mydomain.com/account/withdraw" method="post" accept-charset="utf-8"> <fieldset class="six-col"> <h3>What amount?<

有人能指出为什么我的表单总是无法通过验证吗? 验证不会输出任何错误,并且POST数组始终为空。 对我来说,这是被提交到错误的地方,但事实并非如此

    <form action="https://www.mydomain.com/account/withdraw" method="post" accept-charset="utf-8">      <fieldset class="six-col">
        <h3>What amount?</h3>
        <span style="font-size:1.3em;position:relative;display:inline;">&pound;</span>
        <input id="amount" type="text" placeholder="1.00" style="font-size:1.3em;width:115px;background-color: transparent;color:white;"/>

    </fieldset>
    <fieldset class="six-col">
        <h3>Charges</h3>
        <span id="charges" style="font-size:1.3em;"></span>
    </fieldset>
    <fieldset class="six-col">
        <h3>You leave with</h3>
        <span id="charges2" style="font-size:1.3em;"></span>
    </fieldset>
    <fieldset class="six-col end-col">
        <input type="submit" id="submit" class="btn" value="Withdraw" style="width:125px;position:absolute;bottom:0" />
    </fieldset>
</form>

感谢您的帮助

您的输入中没有设置名称。。 应该是:

确保你真的得到了一些东西

如果有可能测试的话。。在表单_验证之前回显post var,如下所示:

<?php echo $this->input->post('amount'); ?>

接得好,我没注意到丢失的名字+1我总是做同样的事情,CIs profiler是一个很好的开发工具。。通过Google Chrome Developer toolkit监控XHR标题。该死的宽限期!我看到你在我发布我的答案时加上了缺少的名字部分:+1,不管怎样,只是其中的一天,迈克。有时候你看不见它。感谢您抽出时间回复。
<?php echo $this->input->post('amount'); ?>
<?php $this->output->enable_profiler(TRUE); ?>