Welcome Guest, Not a member yet? Register   Sign In
shot me - html isn't decode - WHY?
#1

[eluser]Jan_1[/eluser]
getting really mad... could you please help me?

my input in input field is ' รถ ' for example.
so I get an ' & o u m l ; ' in my db-table-field. that's correct.
but I don't get it decoded back. not with or without html_entity_decode().
it just gives me ' & o u m l ; ' back.
am I blind? why that suddendly?

view
Code:
<?php echo html_entity_decode($profil->detail); ?>
view form
Code:
<input type='text' name='detail' value="<?php echo set_value('detail', $profil->detail); ?>">
<?=form_error('detail')?>

model
Code:
$update['detail'] = htmlentities($this->input->post('detail'));

db
Code:
`detail` text collate utf8_unicode_ci NOT NULL,
PHP-Version: 5.2.6


Messages In This Thread
shot me - html isn't decode - WHY? - by El Forum - 08-16-2010, 03:08 AM
shot me - html isn't decode - WHY? - by El Forum - 08-16-2010, 04:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB