Reputation: 413
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)
Any help would be appreciated.
Upvotes: 0
Views: 681
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