Welcome Guest, Not a member yet? Register   Sign In
Validation: How to change CSS-style in case of error
#1

[eluser]Benedikt[/eluser]
Hi,

Im using CI for developing a registration-procedure. So far no problems, Im using a lot of helpers already and it works quite well up to now.

But I cant figure out how to solve one problem:
When the input-data is validated I want, in case of error, to re-display the form with the filled in data which is no problem so far, but the fields who caused an error should be framed in red.

Is there a way to use the helpers to make this happen or do I have to code it by myself without CI?

You have a hint for me how to solve this?

My problem in short:
1) Submit form
2) If Name is e.g. numeric (12345) then throw an error
3) Display form again where the field "Name" has another CSS-style (border:1px #FF0000).

Thanks for your help!!!


Messages In This Thread
Validation: How to change CSS-style in case of error - by El Forum - 06-29-2008, 07:29 AM
Validation: How to change CSS-style in case of error - by El Forum - 06-29-2008, 08:07 AM
Validation: How to change CSS-style in case of error - by El Forum - 06-29-2008, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB