0

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.

asked Nov 28, 2012 at 21:09
1
  • Can you show what that markup looks like rendered? Are your values being set? Can't tell if that's a snippet of PHP, smarty, or some other framework. Fiddler can be a great tool to trouble shoot these things, and of course there is firebug... Get you past the $_POST being empty at least. Commented Nov 28, 2012 at 21:11

1 Answer 1

4

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.

answered Nov 28, 2012 at 21:15
Sign up to request clarification or add additional context in comments.

1 Comment

thanks can't belive i missed it, been banging my head against it for an hour.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.