Welcome Guest, Not a member yet? Register   Sign In
Problem with some POST data
#5

[eluser]Alhazred[/eluser]
Here is the form code, I've left only one field, it doesn't work anyway
Code:
<?php
$attributes = array('id' => 'moduserdata');
echo form_open(base_url('users/mod_pers_data_act'), $attributes);
?>
<input type='text' id='nome' name='nome' value="<?php echo $this->session->userdata('nome') ?>" />
<input type='submit' name='submit' value='<?php echo lang('crd_form_confirm_btn') ?>'/>
</form>
The controller's function is
Code:
public function mod_pers_data_act()
{
echo $_POST['nome']; //prints an error for missing index
echo $this->input->post('nome'); //prints nothing
echo "blabla"; //this is printed
}


Messages In This Thread
Problem with some POST data - by El Forum - 07-11-2012, 02:47 PM
Problem with some POST data - by El Forum - 07-11-2012, 02:57 PM
Problem with some POST data - by El Forum - 07-11-2012, 02:58 PM
Problem with some POST data - by El Forum - 07-11-2012, 03:00 PM
Problem with some POST data - by El Forum - 07-11-2012, 03:20 PM
Problem with some POST data - by El Forum - 07-11-2012, 03:29 PM
Problem with some POST data - by El Forum - 07-11-2012, 04:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB