Welcome Guest, Not a member yet? Register   Sign In
simple error question
#3

[eluser]RyanH[/eluser]
I'm having a similar issue. I have a registration page that has validation and it's something like this:
Code:
<input type="text" name="name" value="<?=$this->validation->name;?>" /> <?=$this->validation->name_error;?>
On my registration page this works fine. No errors, it's all submitted and everything works fine. However I created a simple contact page with essentially the same code (instead of being submitted to a database it sends an email instead) and I get the following error:
PHP Error Wrote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Validation::$name

Filename: views/someview.php
As with the registration page that works just fine, the rules are set as are the fields. Why would this work on one page and not the other?


Messages In This Thread
simple error question - by El Forum - 01-15-2008, 08:56 AM
simple error question - by El Forum - 01-15-2008, 10:38 AM
simple error question - by El Forum - 01-23-2008, 07:20 PM
simple error question - by El Forum - 01-23-2008, 09:10 PM
simple error question - by El Forum - 01-23-2008, 09:21 PM
simple error question - by El Forum - 01-23-2008, 09:23 PM
simple error question - by El Forum - 01-23-2008, 09:27 PM
simple error question - by El Forum - 01-23-2008, 09:31 PM
simple error question - by El Forum - 01-23-2008, 09:33 PM
simple error question - by El Forum - 01-23-2008, 09:39 PM
simple error question - by El Forum - 01-23-2008, 09:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB