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
function edit_category($id=0){
if ($this->input->post('name')){
...
...
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
$data = array('name'=>'name','id'=>'catname','size'=>25, 'value' => $category['name']);
echo form_input($data) ."</p>";
I used the following. but it does not use if ($this->input->post('name')){, so it does not work.
echo "<h2>".$category['name']."</h2>";
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.