Welcome Guest, Not a member yet? Register   Sign In
Input->post problem
#3

[eluser]flaky[/eluser]
I did a test (XSS filtering ON) and it worked for me
check it out
Code:
//Controller
class Blog extends Controller{

    function index(){
        $this->load->helper('form');
        $this->load->view('test_view');
        if($this->input->post('submit'))
            echo $this->input->post('phone_number');
    }

}

//View
<?php echo form_open('blog'); ?>
    <?php echo form_label('Phone'); ?>
    <?php echo form_input('phone_number'); ?>
    <?php echo form_submit('submit', 'Submit'); ?>
<?php echo form_close(); ?>


Messages In This Thread
Input->post problem - by El Forum - 01-05-2010, 09:46 AM
Input->post problem - by El Forum - 01-05-2010, 01:03 PM
Input->post problem - by El Forum - 01-06-2010, 02:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB