Welcome Guest, Not a member yet? Register   Sign In
database INSERT and UPDATE converts symbols to html code
#13

(This post was last modified: 03-11-2016, 01:10 PM by webmachine.)

Thank you, Narf! I didn't have that third parameter of set_value set to FALSE. Problem solved for the edit registration form, where the values are coming from the database.
PHP Code:
    'value' => set_value('last_name'$client->last_nameFALSE
did the trick.

But in the original form, after the form validation error messages are posted, and I have the form inputs retaining state using this code
PHP Code:
$attributes = array(
        
'id' => 'last_name',
        
'name' => 'last_name',
        
'value' => set_value('last_name')
    );
    echo 
form_input($attributes); 
how do I add that third parameter, when there is no default value given for the second parameter?

I tried
PHP Code:
'value' => set_value('last_name'NULLFALSE
and it seemed to work. Is this correct?
Reply


Messages In This Thread
RE: database INSERT and UPDATE converts symbols to html code - by webmachine - 03-11-2016, 12:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB