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

Code:
set_value('user[name]', $user->name);

On use this code im my input, the input value is set to default ($user->name) when loaded.
By replacing the default value with a blank value and send the form, the input is displayed with the default value with the form error 'required'.

I want the value, even blank, is setted after sending the form.
I'm using codeigniter 3, if i remember, this did not occur in 2.

Thanks.
Reply


Messages In This Thread
blank set_value() return default value - by Reirei - 04-01-2015, 04:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB