Mail-form from dB Masters + reCaptcha - Things wont work the way i want.

I used a mail-form from dB Masters because someone here gave me the tip.
And its great! But it uses a simplefied Captcha script.
I tryd to change the code myself and got to this: http://www.wientjesvoegwerk.nl/PHP/form.php
If you try to send mail it wont work.....
form.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Email Form</title>
</head>
<body>
<center>
<form id="form" method="post" action="../formmailer.php" enctype="multipart/form-data">
<input type="hidden" name="action" value="verify">
<table cellpadding="4">
<tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Uw naam:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<input type="text" name="Naam" value=""/>
</td></tr>
<tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<input type="text" name="Email" value="" />
</td></tr>
<tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Telefoonnummer:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<input type="text" name="Telefoonnummer" value="" />
</td></tr>
<tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Onderwerp:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<select name="Onderwerp">
    <option value="0">Algemene Informatie</option>
    <option value="1">Offerte</option>
    <option value="2">Overige</option>
    </select>
</td></tr>
<tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Bericht:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<textarea name="Bericht" rows="7" cols="40"></textarea>
</td></tr>
<tr><td align=right>CAPTCHA TXT</td>
<td align="left">
<form method="post" action="verify.php">
   <?php
     require_once('recaptchalib.php');
     $publickey = "I hide the key on this forum dont know if its ok to show";
     echo recaptcha_get_html($publickey);
   ?>
</form>
</td>
</tr>
<tr><td></td><td align="left">
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="Reset" value="Clear Form" />
<input type="hidden" name="config" value="0" />
<input type="hidden" name="nospam" value="" />
</td></tr>
</table>
<div style="height:1px; display: none; visibility: hidden;">
<input type="text" name="email">
</div>
</form>
</center>
</body>
</html>
formmailer.php
<?php
// dB Masters' PHP FormM@iler, Copyright (c) 2007 dB Masters Multimedia
// http://www.dbmasters.net/
// FormMailer comes with ABSOLUTELY NO WARRANTY
// Licensed under the AGPL
// See license.txt and readme.txt for details
// General Variables
     $check_referrer="no";
     $referring_domains="www.wientjesvoegwerk.nl";
// options to use if hidden field "config" has a value of 0
// recipient info
     $charset[0]="UTF-8";
     $tomail[0]="[email protected]";
     $cc_tomail[0]="";
     $bcc_tomail[0]="";
// Mail contents config
     $subject[0]="Onderwerp van de Email";
     $reply_to_field[0]="Email";
     $reply_to_name[0]="Naam";
     $required_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
     $required_email_fields[0]="Email";
     $attachment_fields[0]="";
     $return_ip[0]="yes";
     $mail_intro[0]="Er is een bericht gestuurd vanuit Wientjesvoegwerk.nl:";
     $mail_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
     $mail_type[0]="text";
     $mail_priority[0]="1";
     $allow_html[0]="no";
// Send back to sender config
     $send_copy[0]="yes";
     $copy_format[0]="vert_table";
     $copy_fields[0]="Naam,Onderwerp,Bericht";
     $copy_attachment_fields[0]="";
     $copy_subject[0]="Kopie van uw bericht naar Wientjesvoegwerk.nl";
     $copy_intro[0]="Dank u voor uw bericht!<br />Om veiligheidsredenen is uw email adres en telefoonnummer niet in deze mail te zien.<br /> Het volgende is verstuurd;";
     $copy_from[0]="[email protected]";
     $copy_tomail_field[0]="Email";
// Result options
     $header[0]="";
     $footer[0]="";
     $error_page[0]="";
     $thanks_page[0]="";
// Default Error and Success Page Variables
     $error_page_title[0]="Errors:";
     $error_page_text[0]="Ga a.u.b. terug naar de vorige pagina om alle benodigde velden in te vullen.";
     $thanks_page_title[0]="Bericht verzonden.";
     $thanks_page_text[0]="Dank u voor uw bericht!";
// Antispam Options
     $empty_field[0]="nospam";
     $character_scan[0]="Bericht,Naam,Email,Telefoonnummer,Onderwerp";
     $time_delay[0]="2";
     $captcha_codes[0]="9C2449,EEADC8,77A585,D72838";
     $max_urls[0]="2";
     $max_url_fields[0]="Bericht";
     $flag_spam[0]="";
// options to use if hidden field "config" has a value of 1
// recipient info
     $charset[1]="";
     $tomail[1]="";
     $cc_tomail[1]="";
     $bcc_tomail[1]="";
// Mail contents config
     $subject[1]="";
     $reply_to_field[1]="";
     $reply_to_name[1]="";
     $required_fields[1]="";
     $required_email_fields[1]="";
     $attachment_fields[1]="";
     $return_ip[1]="";
     $mail_intro[1]="";
     $mail_fields[1]="";
     $mail_type[1]="";
     $mail_priority[1]="";
     $allow_html[1]="";
// Send back to sender config
     $send_copy[1]="";
     $copy_format[1]="";
     $copy_fields[1]="";
     $copy_attachment_fields[1]="";
     $copy_subject[1]="";
     $copy_intro[1]="";
     $copy_from[1]="";
     $copy_tomail_field[1]="";
// Result options
     $header[1]="";
     $footer[1]="";
     $error_page[1]="";
     $thanks_page[1]="";
// Default Error and Success Page Variables
     $error_page_title[1]="";
     $error_page_text[1]="";
     $thanks_page_title[1]="";
     $thanks_page_text[1]="";
// Antispam Options
     $empty_field[1]="bait";
     $character_scan[1]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
     $time_delay[1]="";
     $captcha_codes[1]="";
     $max_urls[1]="";
     $max_url_fields[1]="";
     $flag_spam[1]="";
// Don't muck around past this line unless you know what you are doing //
ob_start();
$config=$_POST["config"];
$debug=0;
$debug_text="";
// fix for Windows email server security
ini_set("sendmail_from",$tomail[$config]);
// email validation regular expression
$regex = "^[-a-z0-9!#$%&\'*+/=?^_`{|}~]+(\.[-a-z0-9!#$%&\'*+/=?^_`{|}~]+)*@(([a-z0-9]([-a-z0-9]*[a-z0-9]+)?){1,63}\.)+([a-z]([-a-z0-9]*[a-z0-9]+)?){2,63}$";
$header_injection_regex = "(\r|\n)";
if($header[$config]!="")
     include($header[$config]);
if($_POST["submit"] || $_POST["Submit"] || $_POST["submit_x"] || $_POST["Submit_x"])
// begin global functions //
// get visitor IP
     function getIP()
          if(getenv(HTTP_X_FORWARDED_FOR))
               $user_ip=getenv("HTTP_X_FORWARDED_FOR");
          else
               $user_ip=getenv("REMOTE_ADDR");
          return $user_ip;
// get value of given key
     function parseArray($key)
          $arrayvalue=$_POST[$key];
          $count=1;
          extract($array_value);
          foreach($array_value as $part_value)
               if($count > 1){$value.=", ";}
               $value.=$part_value;
               $count=$count+1;
          return $value;
// stripslashes and autolink url's
     function parseValue($value)
          $value=preg_replace("/(http:\/\/+.[^\s]+)/i",'<a href="\\1">\\1</a>', $value);
          return $value;
// html header if used
     function htmlHeader()
          $htmlHeader="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$charset[$config]."\"></head>\n<body>\n<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"600\">\n";
          return $htmlHeader;
// html footer if used
     function htmlFooter()
          $htmlFooter="</table>\n</body>\n</html>\n";
          return $htmlFooter;
// build verticle table format
     function buildVertTable($fields, $intro, $to, $send_ip)
          $message=htmlHeader();
          if($intro != "")
               $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"2\">".$intro."</td>\n</tr>\n";
          $fields_check=preg_split('/,/',$fields);
          $run=sizeof($fields_check);
          for($i=0;$i<$run;$i++)
               $cur_key=$fields_check[$i];
               $curvalue=$_POST[$cur_key];
               if(is_array($cur_value))
                    $curvalue=parseArray($cur_key);
               $curvalue=parseValue($cur_value);
               if($allow_html[$config]=="no")
                    $curvalue=htmlspecialchars(nl2br($cur_value));
               else
                    $curvalue=nl2br($cur_value);
               $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$cur_value."</td>\n</tr>\n";
          if($send_ip=="yes" && $to=="recipient")
               $user_ip=getIP();
               $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$user_ip."</td>\n</tr>\n";
          $message.=htmlFooter();
          return $message;
// build horizontal table format
     function buildHorzTable($fields, $intro, $to, $send_ip)
          $message=htmlHeader();
          $fields_check=preg_split('/,/',$fields);
          $run=sizeof($fields_check);
          if($intro != "")
               $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"".$run."\">".$intro."</td>\n</tr>\n";
          $message.="<tr>\n";
          for($i=0;$i<$run;$i++)
               $cur_key=$fields_check[$i];
               $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n";
          if($send_ip=="yes" && $to=="recipient")
               $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n";
          $message.="</tr>\n";
          $message.="<tr>\n";
          for($i=0;$i<$run;$i++)
               $cur_key=$fields_check[$i];
               $curvalue=$_POST[$cur_key];
               if(is_array($cur_value))
                    $curvalue=parseArray($cur_key);
               $curvalue=parseValue($cur_value);
               if($allow_html[$config]=="no")
                    $curvalue=htmlspecialchars(nl2br($cur_value));
               else
                    $curvalue=nl2br($cur_value);
               $message.="<td align=\"left\" valign=\"top\">".$cur_value."</td>\n";
          $message.="</tr>\n";
          $message.="<tr>\n";
          if($send_ip=="yes" && $to=="recipient")
               $user_ip=getIP();
               $message.="<td align=\"left\" valign=\"top\">".$user_ip."</td>\n";
          $message.="</tr>\n";
          $message.=htmlFooter();
          return $message;
// build plain text format
     function buildTextTable($fields, $intro, $to, $send_ip)
          $message="";
          if($intro != "")
               $message.=$intro."\n\n";
          $fields_check=preg_split('/,/',$fields);
          $run=sizeof($fields_check);
          for($i=0;$i<$run;$i++)
               $cur_key=$fields_check[$i];
               $curvalue=$_POST[$cur_key];
               if(is_array($cur_value))
                    $curvalue=parseArray($cur_key);
               $curvalue=parseValue($cur_value);
               if($allow_html[$config]=="no")
                    $curvalue=htmlspecialchars($cur_value);
               else
                    $curvalue=$cur_value;
               $message.="".$cur_key.": ".$cur_value."\n";
          if($send_ip=="yes" && $to=="recipient")
               $user_ip=getIP();
               $message.="Sender IP: ".$user_ip."\n";
          return $message;
// get the proper build fonction
     function buildTable($format, $fields, $intro, $to, $send_ip)
          if($format=="vert_table")
               $message=buildVertTable($fields, $intro, $to, $send_ip);
          else if($format=="horz_table")
               $message=buildHorzTable($fields, $intro, $to, $send_ip);
          else
               $message=buildTextTable($fields, $intro, $to, $send_ip);
          return $message;
// referrer checking security option
     function checkReferer()
          if($check_referrer=="yes")
               $ref_check=preg_split('/,/',$referring_domains);
               $ref_run=sizeof($ref_check);
               $referer=$_SERVER['HTTP_REFERER'];
               $domain_chk="no";
               for($i=0;$i<$ref_run;$i++)
                    $cur_domain=$ref_check[$i];
                    if(stristr($referer,$cur_domain)){$domain_chk="yes";}
          else
               $domain_chk="yes";
          return $domain_chk;
// checking required fields and email fields
     function checkFields($text_fields, $email_fields, $regex)
           $error_message="";
          if($debug==1)
               $error_message.="<li>text_fields: ".$text_fields."<br />email_fields: ".$email_fields."<br />reply_to_field: ".$reply_to_field."<br />reply_to_name: ".reply_to_name."</li>";
          if($text_fields != "")
               $req_check=preg_split('/,/',$text_fields);
               $req_run=sizeof($req_check);
               for($i=0;$i<$req_run;$i++)
                    $cur_field_name=$req_check[$i];
                    $cur_field=$_POST[$cur_field_name];
                    if($cur_field=="")
                         $error_message.="<li>You are missing the <b>".$req_check[$i]."</b> field</li>\n";
          if($email_fields != "")
               $email_check=preg_split('/,/',$email_fields);
               $email_run=sizeof($email_check);
               for($i=0;$i<$email_run;$i++)
                    $cur_email_name=$email_check[$i];
                    $cur_email=$_POST[$cur_email_name];
                    if($cur_email=="" || !eregi($regex, $cur_email))
                         $error_message.="<li>You are missing the <b>".$email_check[$i]."</b> field or it is not a valid email address.</li>\n";
          return $error_message;
// attachment function
     function getAttachments($attachment_fields, $message, $content_type, $border)
          $att_message="This is a multi-part message in MIME format.\r\n";
          $att_message.="--{$border}\r\n";
          $att_message.=$content_type."\r\n";
          $att_message.="Content-Transfer-Encoding: 7bit\r\n\r\n";
          $att_message.=$message."\r\n\r\n";
          $att_check=preg_split('/,/',$attachment_fields);
          $att_run=sizeof($att_check);
          for($i=0;$i<$att_run;$i++)
               $fileatt=$_FILES[$att_check[$i]]['tmp_name'];
               $fileatt_name=$_FILES[$att_check[$i]]['name'];
               $fileatt_type=$_FILES[$att_check[$i]]['type'];
               if (is_uploaded_file($fileatt))
                    $file=fopen($fileatt,'rb');
                    $data=fread($file,filesize($fileatt));
                    fclose($file);
                    $data=chunk_split(base64_encode($data));
                    $att_message.="--{$border}\n";
                    $att_message.="Content-Type: {$fileatt_type}; name=\"{$fileatt_name}\"\r\n";
                    $att_message.="Content-Disposition: attachment; filename=\"{$fileatt_name}\"\r\n";
                    $att_message.="Content-Transfer-Encoding: base64\r\n\r\n".$data."\r\n\r\n";
          $att_message.="--{$border}--\n";
          return $att_message;
// function to set content type
     function contentType($charset, $format)
          if($format=="vert_table")
               $content_type="Content-type: text/html; charset=".$charset."\r\n";
          else if($format=="horz_table")
               $content_type="Content-type: text/html; charset=".$charset."\r\n";
          else
               $content_type="Content-type: text/plain; charset=".$charset."\r\n";
          return $content_type;
// end global functions //
// begin procedural scripting //
     // anti-spam empty field check
     if($_POST[$empty_field[$config]] != "")
          $empty_message = "<li>This submission failed and was flagged as spam.</li>\n";
     // anti-spam character scan check
     if(strlen($character_scan[$config]) > 0)
          $spam_message="";
          $field_check=preg_split('/,/',$character_scan[$config]);
          $field_run=sizeof($field_check);
          for($i=0;$i<$field_run;$i++)
               $cur_field_name=$field_check[$i];
               $cur_field=$_POST[$cur_field_name];
               if(preg_match("/<(.|\n)+?>/", $cur_field) || preg_match("/\[(.|\n)+?\]/", $cur_field))
                    $spam_message.="<li>This message contains disallowed characters.</li>\n";
     // anti-spam time delay check
     if((strlen($time_delay[$config]) > 0 && strlen($_POST["time"]) > 0) || (strlen($time_delay[$config]) > 0 && (strlen($_POST["time"]) == 0 || !$_POST["time"])))
          if((time() - $_POST["time"]) < $time_delay[$config])
               $time_message = "<li>This has been stopped by the timer, and is likely spam.</li>\n";
     // anti-spam CAPTCHA check
     if(strlen($captcha_codes[$config]) > 0)
          $captcha_check=preg_split('/,/',$captcha_codes[$config]);
          if(strtolower($_POST["captcha_entry"]) != strtolower($captcha_check[$_POST["captcha_code"]]))
               $captcha_message = "<li>CAPTCHA test did not match.</li>\n";
     // anti-spam max URL check
     if(strlen($max_url_fields[$config]) > 0)
          $max_url_message="";
          $field_check=preg_split('/,/',$max_url_fields[$config]);
          $field_run=sizeof($field_check);
          for($i=0;$i<$field_run;$i++)
               $cur_field_name=$field_check[$i];
               $cur_field=$_POST[$cur_field_name];
               preg_match_all("/http:/", $cur_field, $matches);
               if(count($matches[0]) > $max_urls[$config])
                    $max_url_message.="<li>This message contains too many URL's.</li>\n";
     // set anti-spam flagging option
     if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) == 0)
          $set_flag = 2;
     else if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) > 0)
          $set_flag = 1;
     else
          $set_flag = 0;
     // header injection check
        $security_filter="";
     if(strlen($_POST[$reply_to_field[$config]]) > 0)
          if(eregi($header_injection_regex,$_POST[$reply_to_field[$config]]))
               $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
          else
               $reply_to_field_checked=$_POST[$reply_to_field[$config]];
     if(strlen($_POST[$reply_to_name[$config]]) > 0)
          if(eregi($header_injection_regex,$_POST[$reply_to_name[$config]]))
               $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
          else
               $reply_to_name_checked=$_POST[$reply_to_name[$config]];
     // check domain referrer and continue
     $domain_chk=checkReferer();
     if($domain_chk=="yes")
          $error_message=checkFields($required_fields[$config], $required_email_fields[$config], $regex);
          if(strlen($error_message) < 1 && strlen($security_filter) < 1 && $set_flag < 2)
               // build appropriate message format for recipient
               $content_type=contentType($charset[$config], $mail_type[$config]);
               $message=buildTable($mail_type[$config], $mail_fields[$config], $mail_intro[$config], "recipient", $return_ip[$config]);
               // build header data for recipient message
               //$extra="From: ".$_POST[$reply_to_field[$config]]."\r\n";
               $extra="From: ".$reply_to_name_checked." <".$reply_to_field_checked.">\r\n";
               if($cc_tomail[$config]!="")
                    $extra.="Cc: ".$cc_tomail[$config]."\r\n";
               if($bcc_tomail[$config]!="")
                    $extra.="Bcc: ".$bcc_tomail[$config]."\r\n";
               if($mail_priority[$config]!="")
                    $extra.="X-Priority: ".$mail_priority[$config]."\r\n";
               // get attachments if necessary
               if($attachment_fields[$config]!="")
                    $semi_rand=md5(time());
                    $border="==Multipart_Boundary_x{$semi_rand}x";
                    $extra.="MIME-Version: 1.0\r\n";
                    $extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
                    $message=getAttachments($attachment_fields[$config], $message, $content_type, $border);
               else
                    $extra.="MIME-Version: 1.0\r\n".$content_type;
               // send recipient email
               if($debug==1)
                    if($set_flag == 1)
                         $debug_text.="<p><b>Mail would have sent flagged for spam if not in debug mode.</b></p>";
                    else
                         $debug_text.="<p><b>Mail would have sent if not in debug mode.</b></p>";
               else if($debug==0)
                    if($set_flag == 1)
                         $subject = $flag_spam[$config]." ".$subject[$config];
                    else
                         $subject = $subject[$config];
                    mail("".$tomail[$config]."", "".stripslashes($subject)."", "".stripslashes($message)."", "".$extra."");
               // autoresponse email if necessary
               if($send_copy[$config]=="yes")
                    // build appropriate message format for autoresponse
                    $content_type=contentType($charset[$config], $copy_format[$config]);
                    $message=buildTable($copy_format[$config], $copy_fields[$config], $copy_intro[$config], "autoresponder", $return_ip[$config]);
                    // build header data for autoresponse
                    $copy_tomail=$_POST[$copy_tomail_field[$config]];
                    $copy_extra="From: ".$copy_from[$config]."\r\n";
                    // get autoresponse  attachments if necessary
                    if($copy_attachment_fields[$config]!="")
                         $semi_rand=md5(time());
                         $border="==Multipart_Boundary_x{$semi_rand}x";
                         $copy_extra.="MIME-Version: 1.0\r\n";
                         $copy_extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
                         $message=getAttachments($copy_attachment_fields[$config], $message, $content_type, $border);
                    else
                         $copy_extra.="MIME-Version: 1.0\r\n".$content_type;
                    // send autoresponse email
                    if($debug==1)
                         if($set_flag == 1)
                              $debug_text.="<p><b>Autoresponder would have sent flagged for spam if not in debug mode.</b></p>";
                         else
                              $debug_text.="<p><b>Autoresponder would have sent if not in debug mode.</b></p>";
                    else if($debug==0)
                         $send_copy = 1;
                         if($copy_tomail=="" || !eregi($regex,$copy_tomail))
                              $send_copy = 0;
                         if($send_copy == 1)
                              if($set_flag == 1)
                                   $copy_subject = $flag_spam[$config]." ".$copy_subject[$config];
                              else
                                   $copy_subject = $copy_subject[$config];
                              mail("$copy_tomail", "".$copy_subject."", "$message", "$copy_extra");
               // showing thanks pages from a successful submission
               if($thanks_page[$config]=="")
                    echo "<h3>".$thanks_page_title[$config]."</h3>\n";
                    echo "<p>".$thanks_page_text[$config]."</p>\n";
                    if(strlen($debug_text) > 0)
                         echo "<p><b><i>".$debug_text."</i></b></p>\n";
               else
                    header("Location: ".$thanks_page[$config]);
          else
               // entering error page options from missing required fields
               if($error_page[$config]=="")
                    echo "<h3>".$error_page_title[$config]."</h3>\n";
                    echo "<ul>\n";
                    echo $security_filter.$empty_message.$error_message.$spam_message.$time_message.$captcha_message.$max_url_message;
                    echo "</ul>\n";
                    echo "<p>".$error_page_text[$config]."</p>\n";
               else
                    header("Location: ".$error_page[$config]);
     else
          echo "<h3>".$error_page_title[$config]."</h3>\n";
          // message if unauthorized domain trigger from referer checking option
          echo "<p>Sorry, mailing request came from an unauthorized domain.</p>\n";
// end procedural scripting //
else
     echo "<h3>Error</h3>";
     echo "<p>No form data has been sent to the script</p>\n";
if($footer[$config]!="")
     include($footer[$config]);
ob_end_flush();
?>
verify.php
<?php
require_once('recaptchalib.php');
$privatekey = "i hide this on the forum";
$resp = recaptcha_check_answer ($privatekey,
                               $_SERVER["REMOTE_ADDR"],
                               $_POST["recaptcha_challenge_field"],
                               $_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
   // What happens when the CAPTCHA was entered incorrectly
   die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
        "(reCAPTCHA said: " . $resp->error . ")");
} else {
   // Your code here to handle a successful verification
?>
We have a saying in the Netherlands; "Not being abled to see the tree's trough the forest"
Well i dont see it anymore...
I managed to get it in the code but it doesnt work.
I hope someone can help me out!

@Nancy O.
Thanks for your support i appreciate it that you helped me out a many times.
However i have read all of the topics you posted.
I know in the mail form i can disable the "sort of Captcha". I wanted to disable it and insert reCaptcha instead.
I will re-make the form because like you said (and i already figured it out myself) ;
"b) Don't modify forms until you get a very basic form working on your server."
And youre right, im taking too much work at once.
@CowboyInAZ
Im a hobbyist that learns really really fast.
Before March 23 i never used CSS, Javascript and XHTML. And never combined them all together with PHP. (never ever created a php based file from scratch)
The reason why i use other persons code is because i learn faster with examples, and because i dont need to reinvent the wheel if someone already invented it. The only thing i do with it is learn the workings, customise it and at last, rewrite the code when i understand it.
If you look at my current site: http://www.wientjesvoegwerk.nl/
You will notice that the site is validated by W3C with no errors and warnings.
I think it was Nancy O. that gave me the link to the validator. Thats how i discovered the service.
You need to know that in 1 day (from 63 errors and 12 warnings) i removed all errors. And i didnt knew much about it, and why errors happend while the site looks fine.
So im just curious how things work and thats why i "steal" codes and adjust them to learn myself.
I also want a education like you spoke of, but im interested in a different media.
I want to be abled to create my dream project wich involves new ways for game studios to earn money.
This is just a simple start, im also taking tutorials in C#, C++.

Similar Messages

  • I want to reset my ipod touch 4th gen but i have forgotten the restrictions passcode and for some reason its not working on my laptop on itunes and the restore thing wont work! any help?

    I want to reset my ipod touch 4th gen but i have forgotten the restrictions passcode and for some reason its not working on my laptop on itunes and the restore thing wont work! any help?

    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...Re-Sync your Content
    Note:
    To remove a forgotten Restrictions passcode you will need to  Restore the Device as New...
    OR... From a Backup created Before the Restrictions Code was set....

  • I recently repaired disk permissions on my mac HD and now my on-board speakers wont work, the icon is greyed out and only works when my headphones are plugged in.

    I recently repaired disk permissions on my mac HD and now my on-board speakers wont work, the icon is greyed out and only works when my headphones are plugged in

    Try to put your headphones several times in and out from your connection, might be the switch is stuck. Normally it should work again while trying to plug the headphones in and out!

  • HOW DO I SEND AN EMAIL ON MY IPHONE OR IPAD AND MAKE IT APPEAR ON THE MAIL APPLICATION ON MY MAC?   IT ONLY WORK THE OTHER WAY ---SENDING AN EMAIL ON MY COMPUTER ---APPEARS IN SENT ITEMS ON MY IPHONE AND IPAD.

    HOW DO I SEND AN EMAIL ON MY IPHONE OR IPAD AND MAKE IT APPEAR ON THE MAIL APPLICATION ON MY MAC?   IT ONLY WORK THE OTHER WAY ---SENDING AN EMAIL ON MY COMPUTER ---APPEARS IN SENT ITEMS ON MY IPHONE AND IPAD.

    IT IS FOR GMAIL.

  • I accidentally combined all of my photos on iphoto to be one event. i have it the way i want it saved on my external harddrive from time machine. how do i make my computer go back to that

    i accidentally combined all of my photos on iphoto to be one event. i have it the way i want it saved on my external harddrive from time machine. how do i make my computer go back to that

    Open Time Machine to the date that you know the iPhoto Library is in the format you want and select and Restore it.
    http://pondini.org/TM/15.html
    Ciao.

  • How can I get the photos from iPhoto copied to a disk in the order I want?

    How can I get the photos from iPhoto copied to a disk in the order I want??

    To ensure a custom ordering, sort the files in an album and rename the files with a sequentially numbered filename.
    File > Export > Version/Originals
    Then use "Filename > Sequential"
    or "Filename > Album name with index"

  • I download the new version of itune but it wont work the itune store can not connect even my apply id wont sign in it has an error 9808

    i download the new version of itune but it wont work the itune store can not connect even my apply id wont sign in it has an error 9808

    Hello SAB7700,
    This first article can help get iTunes successfully downloaded and updated, which should restore access to the iTunes Store.
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Once iTunes is successfully updated, the following articles provides steps that can help get your iPod working in iTunes again and the iTunes Store functioning, should the update not resolve these issues
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • I fixed my ipod screen but now my camra wont work the shutter will open bet all i see is black pllsss help fast

    i fiixed my ipod screen but now my camra wont work the shutter will open bet all i see is black pllsss help fast

    Likely a bad connection or broken ribbon cable.

  • Inserting signature in Mail form from outgoing email

    Hi,
    I'm trying to send outbound email from service request in SAP CRM. When I select send mail the mail form is displayed. We have option to attach the document, priority and sensistvity. Along with this we also have option to save signature. Once I save the signature how to insert the signature into mail form so that I can send the signature with the mail form.
    Thanks
    Vinod

    @Nancy O.
    Thanks for your support i appreciate it that you helped me out a many times.
    However i have read all of the topics you posted.
    I know in the mail form i can disable the "sort of Captcha". I wanted to disable it and insert reCaptcha instead.
    I will re-make the form because like you said (and i already figured it out myself) ;
    "b) Don't modify forms until you get a very basic form working on your server."
    And youre right, im taking too much work at once.
    @CowboyInAZ
    Im a hobbyist that learns really really fast.
    Before March 23 i never used CSS, Javascript and XHTML. And never combined them all together with PHP. (never ever created a php based file from scratch)
    The reason why i use other persons code is because i learn faster with examples, and because i dont need to reinvent the wheel if someone already invented it. The only thing i do with it is learn the workings, customise it and at last, rewrite the code when i understand it.
    If you look at my current site: http://www.wientjesvoegwerk.nl/
    You will notice that the site is validated by W3C with no errors and warnings.
    I think it was Nancy O. that gave me the link to the validator. Thats how i discovered the service.
    You need to know that in 1 day (from 63 errors and 12 warnings) i removed all errors. And i didnt knew much about it, and why errors happend while the site looks fine.
    So im just curious how things work and thats why i "steal" codes and adjust them to learn myself.
    I also want a education like you spoke of, but im interested in a different media.
    I want to be abled to create my dream project wich involves new ways for game studios to earn money.
    This is just a simple start, im also taking tutorials in C#, C++.

  • Creation of Mail Forms -- From HTML page

    Hi all,
    I have a basic question wrt the creation of MAIL FORMS in SAP CRM.
    Our client creates Email communication content in HTML format. And the requirement is to use these HTML files for creation of Mail Forms (on a very frequent basis)
    While creating Mail Forms there is an Option to UPLOAD HTML file. Can we upload HTML files to create the MAIL FORMS
    We tried doing the same but the files after upload got distorted and the result was not as desired. Should the HTML file exist in a defined format before upload in SAP CRM mail form?
    Thanks.
    Regards,
    SAURABH

    Hi Surabh,
    Use HTML codes in notepad. Use the notepad to upload the file and create mail form. You should follow W3C standard. Refer note 1131645.
    BR, Sathish R

  • Adobe form from webdynpro : Getting a single row in the table

    Hello,
    I have a scenario in which I have to create a adobeform from webdynpro application.
    I have created the form and have the context designed in place.
    I am facing a problem in the table I have in my adobeform.
    I am adding rows to this table dynamically using a button using "addInstance"
    Now on the webdynpro side , when I try to read this table I get a single row from this table.
    This row is always the first row of that table.
    I checked the following things from blog   /people/juergen.hauser2/blog/2006/09/12/avoiding-common-mistakes-when-using-tables-on-sap-interactive-forms  , i.e. :
    Cardinality of the node.
    Tick on the option "Repeat Row for Each Data Item".
    But still no success.
    With deadlines to catch I had to post this question after trying a lot.Please help.

    Hello Otto,
    I had found this link before and used the same solution , but unfortunately is taking a long time.
    Now what I am doing is :
    1. I append 10 rows into the table then bind it to the node
    2. Then on the adobe form I have removed the check on "Add row for each line item" because of which it shows only 1 row 
         on the form.
         Now I add rows dynamically, but this puts a limit on the number of rows can be added to the table i.e. 10.
    But this again has added problems like while displaying the form or modifying I hav to handle it seperately and cannot use the same form as it is.( as I have removed the tick for "Add row for each line item" ).
    Thanks,
    Omkar Mirvankar

  • I am changing ISPs and will be dropping two email addresses I use as AppleID's.  Can I keep them as AppleID's and use a rescue e-mail address from a new ISP?  What are the downsides if I have an iCloud address as an alias under one of those addresses?

    I am about to change internet service providers and will be dropping two e-mail addresses that I use as Apple ID’s.  One is used solely for iTunes and the other is used for iCloud, mail, calendars, etc.  The second has two iCloud email address as aliases.  I will be going to a new ISP and will establish an e-mail address from that ISP as a backup in case the iCloud addresses are not available. 
      It has been suggested to me that I should continue to use the e-mail addresses from the old ISP as my Apple ID’s.  And that I use the e-mail address from the new ISP as a rescue e-mail address for those Apple ID’s to get any communications relating to the ID’s. That seems like a simple and straight-forward way of handling the change and would minimize the chance of complications from changing the Apple ID’s.  But, are there any downsides to handling the change in this way?  If so, what are they?

    You can continue to use them as Apple ID's, change the rescue address (as you know)
    You can use your iCloud address, but it won't be an alias, it's a full email address.

  • IMac restored from external hard drive-password wont work

    I just had my iMac wiped clean and migrated my information from an external hard drive however after migrating everything to the clean machine, the password wont work and when I attempt to reset it via the apple id, it wont go through even though I have checked and rechecked that I am using the correct information.
    help!

    First, make sure caps lock is not on.
    Another reason why your password might not be recognized is that the keyboard layout (input source) has been switched without your realizing it. At the login screen, you can cycle through the available layouts by pressing the key combination  command-space or command-option-space. See this support article.
    Otherwise*, boot into Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. In the window that opens, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens. Close the Terminal window to get it out of the way.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead these instructions.

  • A funny thing happened on the way to the forum

    So being stuck in Pittsburgh airport (which is rather nice, although they need some more trash cans) i decided to wander around and shop. While wandering and waiting i did what any MP3 player owner would do, listen to music. People asked me about this thing that played music, this "not-iPod." I told them, good and bad... i think they'll be buying one.
    And while walking among the myriad of ipod shaped accessories, what did i rarely see. AN iPOD! I saw a shuffle and a mini, belonging to middle schoolers. But what i did see, and talk about was the Touch. Of the few dozen people i saw walking around that airport, i saw more touches than iPods.
    Creative, get your stuff together. Advertise and update the Touch. If i saw in an airport that it outnumbered the iPod almost 0:, think of what you could do. Advertise to business people: "Business or Pleasure? Both - Pocketsized." A portable harddri've and MP3 player.
    Do not go quietly into the night... rage against the dying of the light! Gi've people a reason to want the product and want to return.

    Turns out that what I saw was momentary in other Adobe forums, but lingered in the PE forum. JerryK got right on it and had it fixed.
    In other Adobe forums, just closing those, and coming right back did not yield the problem, except for PE, but now all is right. Except for the recent slowdown... but that's another story.
    Thanks for the replies,
    Hunt

  • How can I buy a product on ITunes from another country. I live in the Netherlands and want to buy a movie produced for Chile, South America

    I live in the Netherlands and want to buy a movie on ITunes meant for Chile, South America.
    Is this possible?

    No, you can only buy from your country's store - to be able to buy from the Chilean store you need to be in Chile with a Chilean billing address on your account. You can try requesting that the film be added to the Netherlands store, but without the film studio's agreement Apple won't be able to sell it there : http://www.apple.com/feedback/itunes.html

Maybe you are looking for

  • Can't open Photos library, and how to fix it?

    I successfully migrated from iPhoto library to this new Photos Library in April.17th, and everything seems okay except for some minor bugs. but from yesterday on, I started Photos and got this message "Can't open Photos Library, try another." If I tr

  • WAAS Raid or Hard disk failure

    I encounter the issue to bring up the WAE-612-K9, and stay on the Raid controller screen with booting in loop. On the Raid Controller screen, it displays the below message and seems detecting the Hard drive. Afte waiting around a few minutes, it will

  • Hi, Finding fixed vendor for material

    Hi, my  requirement is to  copy the fixed vendor address to text object( available in the text tab of the VA01 transaction). I am entering the article numbers in the va01 transaction with some 5 item numbers. i am getting the Purchase requisition num

  • A Table that was created at Run time. A Row Properly Deleted from Table Is Still Present on Form with BindingNavigator

    Hello I have a dataset that was created at design time but - after I run the app, it randomly creates a table based on The Users name since I do not know the users name before had, the table is not part of my existing dataset (I actually used an inse

  • Learning Acrobat X Pro

    I downloaded Arobat X Pro trial, but I having trouble learning to use it.  The videos won't download and I didn't find one with the basics, anyway.  "Help" isn't muc help.  Is there a short tutorial somewhere with the basics?  Can I edit words in a f