Welcome Guest, Not a member yet? Register   Sign In
How to pass data from a view to a controller?
#11

[eluser]laytone[/eluser]
try this

Quote:My controller has the following code:
$project_id = $this->input->post(“ProjectID”);
echo $project_id;

Code:
echo "<pre>";
print_r($_POST);
echo "</pre>";

This way you can see all the variables that your form is posting. Maybe in your html the hidden fields are not within your &lt;form&gt;&lt;/form> tags?.?.?


Messages In This Thread
How to pass data from a view to a controller? - by El Forum - 02-12-2010, 10:17 AM
How to pass data from a view to a controller? - by El Forum - 02-12-2010, 10:20 AM
How to pass data from a view to a controller? - by El Forum - 02-12-2010, 10:37 AM
How to pass data from a view to a controller? - by El Forum - 02-12-2010, 11:46 AM
How to pass data from a view to a controller? - by El Forum - 02-12-2010, 11:52 AM
How to pass data from a view to a controller? - by El Forum - 02-12-2010, 12:09 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 11:46 AM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 11:59 AM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 12:22 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 12:35 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 12:37 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 01:05 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 01:24 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 01:34 PM
How to pass data from a view to a controller? - by El Forum - 02-15-2010, 01:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB