Prevent null values on input post |
Just extends Input Core
PHP Code: <?php
Moved your post here, as it appears to be a suggestion rather than a bug or support request.
(09-29-2017, 10:10 AM)jonathanq Wrote: Just extends Input Core Why? If you need an empty string use (string) before the methode. $data = (string) $this->input->post('not_exist');
But what if an empty string is not wanted but NULL is?
If we want to make everyone happy then maybe something like this PHP Code: /** |
Welcome Guest, Not a member yet? Register Sign In |