Welcome Guest, Not a member yet? Register   Sign In
form validation for NOT matches
#1

[eluser]blorriman[/eluser]
I have a form and I am using the following to create an input:
echo form_input('first_name', set_value('first_name', 'enter first name'));

I then validate the form:
$this->form_validation->set_rules('first_name', 'Name', 'trim|required');

However, because the form opens with "enter first name" in the text input, the required validation doesn't work.

I like the look this way instead of adding a label, but how do I validate this as required now?


Messages In This Thread
form validation for NOT matches - by El Forum - 01-19-2010, 02:33 PM
form validation for NOT matches - by El Forum - 01-19-2010, 03:01 PM
form validation for NOT matches - by El Forum - 01-19-2010, 03:51 PM
form validation for NOT matches - by El Forum - 01-19-2010, 03:55 PM
form validation for NOT matches - by El Forum - 01-19-2010, 04:51 PM
form validation for NOT matches - by El Forum - 01-19-2010, 04:52 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:05 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:06 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:21 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:26 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:39 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:41 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:56 PM
form validation for NOT matches - by El Forum - 01-19-2010, 06:02 PM
form validation for NOT matches - by El Forum - 01-19-2010, 06:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB