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

[eluser]Jagar[/eluser]
Greetings everyone,

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

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

Thanks
#2

[eluser]Jagar[/eluser]
Well I can do
Code:
$_POST['link'] = "result"
, but want to do CI way, if there's a way
#3

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

[eluser]Jagar[/eluser]
I understand that, and that's how I'm doing it, I thought maybe there's a way through
Code:
$this->input->post
#5

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

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

I'm guess this is the CI way Smile
#6

[eluser]Jagar[/eluser]
All right thanks Smile




Theme © iAndrew 2016 - Forum software by © MyBB