how can i show the empty field that user submit??
if($this->input->post('name')){
$data['name'] = $this->input->post('name');
}elseif(!empty($details)) {
$data['name'] = $details['name'];
}else{
$data['name'] = '';
}
But if user clear the input field and submit, it wont show the input as empty it will execute the elseif statement though user submit post request.
How to avoid this?
i want to say the field is empty