$_POST data not mapping to $this->input->post |
[eluser]randalrust[/eluser]
I am completely new to actually coding with CI and MVC, but have a lot of experience with OOP in PHP. I am working through a tutorial [1][2], but I'm having an issue that I don't quite understand. My form_view has the following fields: first name last name seminar (four checkboxes) comments (textarea) When I properly fill out and submit the form and the data is passed to the controller, I keep getting error messages that say: A PHP Error was encountered Severity: Notice Message: Undefined index: email The exception is the 'seminar' field. If I check a box, then it works properly. I know the data is getting passed, because I can echo the $_POST array and see it. Oddly enough, I added this to my controller file: $this->input->post['fname']=$_POST['fname']; $fname=$this->input->post['fname']; Then I was able to avoid the error on the 'first name' field. So what it looks like is that the $_POST array is not getting properly passed to $this->input->post. Any thoughts? [1] http://godbit.com/article/introduction-to-code-igniter [2] http://godbit.com/article/introduction-t...ter-part-2 |
Messages In This Thread |
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 05:59 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:01 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:05 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:06 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:11 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:27 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:45 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 06:55 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 07:01 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 07:23 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 07:51 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 07:58 AM
$_POST data not mapping to $this->input->post - by El Forum - 01-09-2008, 08:01 AM
|