Welcome Guest, Not a member yet? Register   Sign In
validation problem
#1

[eluser]-spy-[/eluser]
i was testing this code
Code:
<html>
<head>
<title>My Form</title>
</head>
<body>

<?=$this->validation->error_string; ?>

<?=form_open('form'); ?>

<h5>Username</h5>
&lt;input type="text" name="username" value="&lt;?=$this-&gt;validation->username;?&gt;" size="50" />

<h5>Password</h5>
&lt;input type="password" name="password" value="" size="50" /&gt;

<h5>Password Confirm</h5>
&lt;input type="password" name="passconf" value="" size="50" /&gt;

<h5>Email Address</h5>
&lt;input type="text" name="email" value="" size="50" /&gt;

<div>&lt;input type="submit" value="Submit" /&gt;</div>

&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;

but error occured
Code:
Username
A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Validation::$username

Filename: views/myform.php

Line Number: 12
" size="50" />

what supposed to be the problem?


Messages In This Thread
validation problem - by El Forum - 01-10-2008, 02:36 AM
validation problem - by El Forum - 01-10-2008, 02:44 AM
validation problem - by El Forum - 01-10-2008, 02:50 AM
validation problem - by El Forum - 01-10-2008, 02:55 AM
validation problem - by El Forum - 01-10-2008, 05:12 AM
validation problem - by El Forum - 01-10-2008, 05:24 AM
validation problem - by El Forum - 01-10-2008, 05:32 AM
validation problem - by El Forum - 01-10-2008, 09:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB