Will Freeform Help me? 
Posted: 08 July 2007 04:02 PM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2007-07-07

I have made a form that error checks & validates in php.  After putting it up in EE, I am getting a TON of spam.  Will Freeform help with the spam & can I run some of the array’s in freeform to populate my form fields?

Thanks,

-greg

Profile
 
 
Posted: 08 July 2007 04:26 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Greg,

There’s an extension that you can buy from us for about $5 bucks that helps with Freeform spam.

And yes, you can use your PHP arrays to create form fields for Freeform.

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 09 July 2007 03:15 AM   [ Ignore ]   [ # 2 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Actually, it’s 5 bucks exactly grin Mitchell is talking about this extension. May I add, from personal experience, that it’s totally worth it?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 09 July 2007 07:40 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  10
Joined  2007-07-07

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

Profile