i cannot print my desire path in the form action i set a condition that id the $edit array is set then page goes to add_new_proposal function which i define in my controller and if the $edit variable is not set then it goes to edit_new_proposal function
here is the code of action of form
<form role="form" method="post" action="<?php if(isset($edit)){echo 'base_url();proposal/add_new_proposal';}else{echo 'base_url();proposal/edit_new_proposal';}?> " enctype="multipart/form-data">