CodeIgniter Forums
Very Strange Bug or a problem When using the php tags as inputs in a form. - 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: Very Strange Bug or a problem When using the php tags as inputs in a form. (/showthread.php?tid=47112)



Very Strange Bug or a problem When using the php tags as inputs in a form. - El Forum - 11-26-2011

[eluser]arif_stalker_majid[/eluser]
Hello,

I was using this value as an input : "<?php echo "how r u"; ?>"

before adding it in the db, i saw the data dump and found it to be perfectly changed in to
"<?php echo "how r u"; ?>"

BUT.. on seeing the database entry i found out it was saved with this value
"Majid<?php echo "how r u"; "

the closing PHP tag was missing...

i am using $this->input->post("",true);

thanks