Welcome Guest, Not a member yet? Register   Sign In
blank set_value() return default value
#6

(04-10-2015, 10:05 AM)silentium Wrote: If the user submit the field empty, it's empty and if empty, the helper sets the default value.

Only way around would be to have a value in it.

I did a test in the ci 2.1 and works perfectly.

The correct is: If $_POST is empty, set values $default, else set values $_POST.
Reply


Messages In This Thread
RE: blank set_value() return default value - by Reirei - 04-12-2015, 08:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB