[eluser]Phil Sturgeon[/eluser]
There is no choice sadly, you must have Server validation or your data will have as much integrity as a US politician.
If its one or the other, use CodeIgniter (server-side) validation. If you want it to look pretty, use jQuery validation
as well as CodeIgniter.
Not much point having a pretty set of error messages if the user can just turn it off and break your site.
I prefer a mix something like:
Code:
[removed]
$(function() {
$('p.hidden').slideDown();
});
[removed]
<? if ($this->validation->error_string): ?>
<p class="error hidden"><?=$this->validation->error_string;?></p>
</p>
Obviously this assumes error is a big red box and hidden is display:none;
Might not be as pretty but simplifies things and means I only have one set of rules to worry about.