Hello,
Running 2.1.0
Build: 20100810
I have a form which submits to a channel.
All going well except for checkbox array which is failing on submission.
This is fine:
<input name="reg_q5[Ford]" type="checkbox" value="Ford" checked="checked" />
This fails with ‘Disallowed Key Characters’
<input name="reg_q5[Aston Martin]" type="checkbox" value="Aston Martin" />
What’s failing is the space in the reg_q5 array name.
I’ve edited Line 538 of system/codeigniter/system/core/Input.php
from:
exit('Disallowed Key Characters.');To:
exit("Disallowed Key Characters: $str");The above indeed shows me that spaces are the issue.
I cannot hard code the array name as it’s genereated in a loop and I’m loathed to start making permanent edits to the core.
Any suggestions?
John