Welcome Guest, Not a member yet? Register   Sign In
form_validation and page not displaying
#1

[eluser]sico87[/eluser]
I have a page on which I am using the form validation library, however when I run a check to make sure the form validates I get greeted with a blank page. The code I am using to do this is,

Code:
if($this->form_validation->run() == FALSE)
        {
            echo "success";
        } else {
            $this->template->build('admin/jobwall/add_job');
        }


I am using routing would this course a problem
#2

[eluser]Twisted1919[/eluser]
Do you have $config['compress_output'] = TRUE ; in your config file ? If so, then that's the problem, don't echo anything with compression active .

What's the part where your script dies , when you submit valid data ? or when you submit invalid data ?

P.S: Follow the user guide to indent your code, provided sample sucks .




Theme © iAndrew 2016 - Forum software by © MyBB