[eluser]TheFuzzy0ne[/eluser]
OK, first of all, you are not using flash data correctly. In fact, you're not using flashdata at all. To use flashdata, you need to load the session class, and you set flashdata like so:
Code:
$this->session->set_flashdata('key', 'data');
Also, flash data is used to pass data over from one request, to the one after. If you are going to set it and use it in the same request, then you don't need flashdata, you just need a simple variable.
You could really do with initializing your variables before you use them, as currently, the $flash variable is only set if the form is being submitted. The only other alternative I can think of is to use isset() from within your view. That will fix those errors.
All the best!