CodeIgniter Forums
Skipping the values in textbox - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Skipping the values in textbox (/showthread.php?tid=47865)



Skipping the values in textbox - El Forum - 12-25-2011

[eluser]shankar ganesh[/eluser]
Hi,

I stored the text 'sd\'sdf"sdf\"sadf in DB as
Code:
'sd'sdf"sdf"sadf
using the below php code

htmlentities(stripcslashes(trim($_POST['fuel_type'])), ENT_QUOTES);

When I retreive it and show it in textbox it displays only 'sd'sdf and not 'sd\'sdf"sdf\"sadf and the code is shown below

$fuel_type = html_entity_decode($result[0]['type']);

How to resolve this?