When I use function create_category(), it will create a directory with this name such as images/newfolder. Then I have a function edit_category() which checks post('name').In a controller\[code\]function edit_category($id=0){if ($this->input->post('name')){......\[/code\]I don't want to allow to change the category name. It will create another directory with a new name, images/newfolder2 etc.In a view\[code\]$data = http://stackoverflow.com/questions/1989198/array('name'=>'name','id'=>'catname','size'=>25, 'value' => $category['name']);echo form_input($data) ."</p>";\[/code\]I used the following. but it does not use if ($this->input->post('name')){, so it does not work.\[code\]echo "<h2>".$category['name']."</h2>";\[/code\]Do you have any good ideas to solve this problem?--UPDATE--I am using Codeigniter, but I don't think it is relevant in this case. I want to use if statement or some checking mechanism for this.