Welcome Guest, Not a member yet? Register   Sign In
Quick question regarding form_validation
#2

[eluser]TheFuzzy0ne[/eluser]
You are correct, however you may be better off accessing the post array like this:

Code:
$this->input->post('field_name');

CodeIgniter has been designed so that you controller methods should never need to access the $_POST array directly. It's also easier to use. You can do:

Code:
$some_field = $this->input->post('some_field');
{
    # Do something

instead of having to do:
Code:
$some_field = (isset($_POST['some_field')) ? $_POST['some_field') : FALSE;
{
    # Do something

Trust your instincts, the force is strong with you...

Just my 2 pence.


Messages In This Thread
Quick question regarding form_validation - by El Forum - 04-09-2009, 03:38 PM
Quick question regarding form_validation - by El Forum - 04-09-2009, 03:54 PM
Quick question regarding form_validation - by El Forum - 04-10-2009, 02:22 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 05:52 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 10:14 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 10:16 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 10:17 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 10:46 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 10:50 AM
Quick question regarding form_validation - by El Forum - 04-10-2009, 11:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB