This is a strange issue (for me, at least) that I’ve never encountered before. Below is a simple code to create a table with form checkboxes, each one labeled by my sql column names on fields 5-24.
Everything works fine, the table is created, and its functionality does roughly what I want it to do. The issue I’m having is this:
[php]
echo ’
';
[/php]
For whatever reason, the $var shows as plain text when I run this script in any browser. Viewing the page source, all 19 of my checkboxes are value="$var", and the form submit button ($aWidget[$i]) spits “$var” right back at me for each checkbox that’s selected. This issue isn’t appearing anywhere else on my webpage; just seems to be within the foreach loop that variables aren’t being defined the way they should be. Is there any quick fix for this?
Thanks in advance.
[php]$createSearchTable = array(5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24);
echo ’