user798774
user798774

Reputation: 413

Problems getting post data in codeigniter

I'm having problems getting post data from my view. In my controller i currently have the following:

function update()
{
    var_dump($this->input->post('name'));
}

That returns

bool(false)

I have tried

var_dump($_POST);

but that returns an empty array

Here is my view on pastebin(I can't get the format right here)

http://pastebin.com/zJvuDRu4

Any help would be appreciated.

Upvotes: 0

Views: 681

Answers (1)

jkamizato
jkamizato

Reputation: 196

You forgot the attribute name

<td><input type="text" id="name" value="{name}"/></td></tr>

The correct is:

<td><input type="text" id="name" value="{name}" name="name"/></td></tr>

And the others inputs, you have to do the same.

Upvotes: 4

Related Questions