Welcome Guest, Not a member yet? Register   Sign In
Assign a form field

Greetings everyone,

Is there anyway in Ci to assign a form field, for example in plain PHP you could do:
$_POST['fieldname'] = "something";

In CI doesn't work that way, is there any way to do that?


Well I can do
$_POST['link'] = "result"
, but want to do CI way, if there's a way

[eluser]Colin Williams[/eluser]
CI is PHP. That's the way you should do it.

I understand that, and that's how I'm doing it, I thought maybe there's a way through

[eluser]Thorpe Obazee[/eluser]
$_POST['field'] = 'new value';

echo $this->input->post('field'); // outputs 'new_value'

I'm guess this is the CI way Smile

All right thanks Smile

Theme © iAndrew 2016 - Forum software by © MyBB