Welcome Guest, Not a member yet? Register   Sign In
Need help with Styling form Validation
#1

[eluser]vincej[/eluser]
Hi - I have uncovered a curious situation. I can easily style the validation_errors() this way:

Code:
echo "<span class='validation'>".validation_errors()."</span>";

However, if I attempt to style form_error() inthe same way,

Code:
echo "<span class='validation'>". form_error('Email'). "</span>";

the styling is ignored. In fact the span does not even wrap around the error mssage ! The rendered source code ends up looking like this:

Code:
<p>
<label for="Email">Email</label>
<br>
<span class="validation"></span>
</p>
<p>The Email field must contain a valid email address.</p>
&lt;input id="Email" type="text" size="45" value="[email protected]" name="Email"&gt;
<p></p>


I must be doing something really stupid - but I can't see it -

Many Many Thanks for any ideas !

Cheers !


Messages In This Thread
Need help with Styling form Validation - by El Forum - 11-14-2011, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB