Welcome Guest, Not a member yet? Register   Sign In
Edit value on db with ' or "
#4

Use the esc() helper function:

PHP Code:
<input type="text" name="myfield" value="<?= esc($string); ?>" /> 
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
Edit value on db with ' or " - by pippuccio76 - 08-04-2019, 01:48 AM
RE: Edit value on db with ' or " - by includebeer - 08-05-2019, 07:23 AM
RE: Edit value on db with ' or " - by InsiteFX - 08-05-2019, 07:56 AM
RE: Edit value on db with ' or " - by includebeer - 08-05-2019, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB