Welcome Guest, Not a member yet? Register   Sign In
Ci 3 $_POST not accepting spaces?
#3

(02-05-2020, 11:04 AM)jreklund Wrote: You will need to put your options in a quoted string. Or generate slugs that change spaces into hyphens (-).

PHP Code:
<input name="options['<?= $row ?>']" value ="1" type="checkbox"

I tried this, but it doenst work either. 
it returns :

array(1) { [0]=> string(1) "1" }, even for the keys that have no spaces in them like the word "ABS"

the only thing that seems to work is 


PHP Code:
<input name="options[<?= $row ?>]" value ="1" type="checkbox"

and this only works if there is no space in the key.  

Reply


Messages In This Thread
Ci 3 $_POST not accepting spaces? - by sanderv - 02-05-2020, 03:17 AM
RE: Ci 3 $_POST not accepting spaces? - by sanderv - 02-05-2020, 03:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB