Welcome Guest, Not a member yet? Register   Sign In
How do I validate non-required fields?
#5

[eluser]sv3tli0[/eluser]
@Skyscraper:

If you are at user settings page and you are updating user fields and there is last_name your script should update it.

Not to change it just set the old value inside the last name input and it will update it self..
So if user change it to empty your check will said : "at least 4 symbols.."
And if user doesn't change it the old value will update it self with the same value.. And you will keep it as it is!


Your case is custom "Don't update field if its empty"..
Perhaps you must create dependence on which to update your table..


Messages In This Thread
How do I validate non-required fields? - by El Forum - 08-04-2013, 10:32 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 01:56 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 05:01 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 05:59 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 06:41 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 07:13 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 07:29 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 08:12 AM
How do I validate non-required fields? - by El Forum - 08-05-2013, 10:38 AM
How do I validate non-required fields? - by El Forum - 08-10-2013, 07:19 PM
How do I validate non-required fields? - by El Forum - 08-11-2013, 02:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB