Welcome Guest, Not a member yet? Register   Sign In
Custom error
#1

[eluser]rafiqasad[/eluser]
I am using codeigniter form error validation

but return me error in echo
Code:
$this->validation->error_string;
But i want to display them separately

Mean 'name' error in front of name
Mean 'password' error in front of password
Mean 'email' error in front of error

Can any one help me in this regard
#2

[eluser]Dirk Einecke[/eluser]
Hi,

see Showing Errors Individually

Code:
<?php echo form_error('FIELDNAME'); ?>

Dirk
#3

[eluser]rafiqasad[/eluser]
I am trying this but it gives me error
Fatal error: Call to undefined function form_error() in D:\Data\projects\finditnear\system\application\views\home\signup.php on line 39


Now what to do?
#4

[eluser]saidai jagan[/eluser]
Oh Oh u r's is
Code:
$this->validation->error_string;
but the form_error('FIELDNAME'); is for New version
$this->form_validation
#5

[eluser]rafiqasad[/eluser]
Can u please explain it little more.
I am still unable to perform this action :zip: :-S
#6

[eluser]CroNiX[/eluser]
[quote author="rafiqasad" date="1261093336"]Can u please explain it little more.
I am still unable to perform this action :zip: :-S[/quote]
post your code
#7

[eluser]rafiqasad[/eluser]
I am still unable to understand how to display custom error in front of every field. Please some one explain me with any example?
#8

[eluser]saidai jagan[/eluser]
What is u r CI version ?
I think the
Code:
form_error('FIELDNAME');
is for the newer version




Theme © iAndrew 2016 - Forum software by © MyBB