Welcome Guest, Not a member yet? Register   Sign In
Assistance needed on form!!
#2

[eluser]Andy Harris[/eluser]
A little more info, I'm using the CI validation library too. So each of my form fields looks a little like this:

Code:
<p><label for="source_phone" &lt;? if($this->validation->source_phone_error!="")echo 'class="error"';?&gt;>Home Phone*</label>
&lt;input type="text" id="source_phone" name="source_phone" value="&lt;?=$this-&gt;validation->source_phone;?&gt;" &lt;? if($this->validation->source_phone_error!="")echo 'class="error"';?&gt; /></p>

I guess I could pass back something to the view to tell it the form was submitted, and not to include that value if that's the case, but it's not very elegant.


Messages In This Thread
Assistance needed on form!! - by El Forum - 04-08-2008, 03:24 AM
Assistance needed on form!! - by El Forum - 04-08-2008, 03:35 AM
Assistance needed on form!! - by El Forum - 04-08-2008, 04:13 AM
Assistance needed on form!! - by El Forum - 04-08-2008, 04:23 AM
Assistance needed on form!! - by El Forum - 04-08-2008, 05:14 AM
Assistance needed on form!! - by El Forum - 04-08-2008, 05:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB