Welcome Guest, Not a member yet? Register   Sign In
View within view and validation
#1

[eluser]Computerzworld[/eluser]
Hello. I am having one login form which is at the right side. And user can register from there. Now if user opens the registration form and submits the form without filling data it displays the error in registration form and in login form which is on the right side of registration form because of $this->validation->error_string is written in both views.Is it possible to seperate out these two error strings anyhow? If yes then please reply me. Thanks in advance.
#2

[eluser]xwero[/eluser]
you could use variables, login_error and register_error for instance, and add the validation->error_string to the variable from the posted form.
#3

[eluser]Computerzworld[/eluser]
thanks for the reply but how can i use register_error as instance instead of error_string?
#4

[eluser]Computerzworld[/eluser]
i tried with what you said by assigning $this->validation_error_string to $this->validation->login_error and echoed $this->validation->login_error in the view but it didn't echoed the error message.
#5

[eluser]Computerzworld[/eluser]
it is solved....Smile
thanks once again....




Theme © iAndrew 2016 - Forum software by © MyBB