Welcome Guest, Not a member yet? Register   Sign In
Validation variables missing
#1

[eluser]Wohlstand Applications[/eluser]
I am using CI validation class in my app. It works on my development server (XAMPP PHP5) but when I put it on my host server (PHP4) the variables for fields set do not get passed through. The page loads, and I get a warning variable not initialized variable.

In my controller I have:
Code:
//set validation fields
$fields['username'] = 'Username';
$this->validation->set_fields($fields);
        
//load view
$data['page_title'] = "User Login";
$data['page'] = "users/login.php";
$this->load->view('template/template_no_nav.php',$data);

And in the view (no method used) I have:
Code:
<input name="username" id="username" type="text" value="<?php echo $this->validation->username; ?>" />

The resulting page is this, and I've added var_dump($this->validation) to it: http://smartgoals.net/index.php/users

The first line of the var_dump seems to tell the whole story:

ON DEV SERVER: object(CI_Validation)#14 (14) {
ON HOST SERVER: object(ci_validation)(10) {

The var_dump is so long its hard to find what is missing, I believe it is the "output" array or something of that sort.

I tend to think the problem is with PHP INI settings on the server? Any ideas?


Messages In This Thread
Validation variables missing - by El Forum - 12-30-2007, 03:51 PM
Validation variables missing - by El Forum - 12-30-2007, 04:07 PM
Validation variables missing - by El Forum - 12-30-2007, 04:15 PM
Validation variables missing - by El Forum - 12-30-2007, 04:17 PM
Validation variables missing - by El Forum - 12-30-2007, 04:32 PM
Validation variables missing - by El Forum - 12-31-2007, 03:00 AM
Validation variables missing - by El Forum - 01-06-2008, 03:04 PM
Validation variables missing - by El Forum - 01-07-2008, 09:33 PM
Validation variables missing - by El Forum - 01-10-2008, 09:13 AM
Validation variables missing - by El Forum - 01-12-2008, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB