CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

BUG : Input Class -> post issue with check empty data

Open churavka opened this issue 13 years ago • 1 comments

Normal request empty form field is: in controller: var_dump( isset($this->input->post('key')) ) output is false

Ajax request empty form field with jquery serialize: var_dump( isset($this->input->post('key')) ) output is true - empty string

Core \ Input \ line 156 if (isset($array[$index]) and $array[$index] !== '' ) { ....

Omlouvám se, že píšu takhle ve zkratkách, bohužel neumím anglicky. Děkuji za pochopení

I'm sorry that I'm writing this in abbreviations, unfortunately I can not English. Thank you for your understanding

churavka avatar Jun 04 '13 15:06 churavka

There's no difference between the two, at least not on the server side. For some reason you're not sending that form field in the first case, problem is in your code.

narfbg avatar Jun 24 '13 08:06 narfbg