How to accept an empty input value in CI? |
Hi all, I want my app to accept an empty value in the input file uploader How?
PHP Code: <?= form_open_multipart('upload/upload') ?> PHP Code: $file = $this->request->getFile('userfile');*I want to accept if user did not pick up an image*/ Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
Could you check empty() on the POST var?
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
what about an isset() check?
PHP Code: $file = $this->request->getFile('userfile'); |
Welcome Guest, Not a member yet? Register Sign In |