Thanks for the heads up on the extension.
Question though…
I am unable to run php arrays in freeform. Yes, I have php enabled on the tempate, and I know that it worked in the past, as I am trying to re-do the form in freeform on the same template I had my other one on with the hopes that it will help get rid of the large amount of spam I got on the other one..
I get the following error:
Parse error: parse error, unexpected T_VARIABLE, expecting ‘,’ or ‘;’ in /var/www/html/ee/core/core.functions.php(629) : eval()’d code on line 46
with this array:
<?php
$region = array ('Select Region' => 'Select Region', 'United States' => 'United States', 'Canada' => 'Canada', 'Europe' => 'Europe', 'Middle East' => 'Middle East', 'North Africa' => 'North Africa', 'Africa' => 'Africa', 'India' => 'India', 'Russia' => 'Russia', 'SE Asia' => 'SE Asia', 'Japan' => 'Japan', 'Australia/New Zealand' => 'Australia/New Zealand', 'South America' => 'South America', 'Central America' => 'Central America', 'Mexico/Caribbean' => 'Mexico/Caribbean');
echo '<select name="region">';
foreach ($region as $key => $value)
{
echo "<option value=\"$key\">$value</option>\n";
}
echo '</select>';
?>
Any suggestions?
Thanks,
-greg