"; $aName=removeSomeChars($_POST["famnaam1"]); if ( $aName == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve een naam in te geven.
  • " ; } $aFirstName=removeSomeChars($_POST["voornaam1"]); if ( $aFirstName == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve een voornaam in te geven.
  • " ; } $aStraat=removeSomeChars($_POST["straat"]); if ( $aStraat == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je straat in te geven.
  • " ; } $aNr=removeSomeChars($_POST["nr"]); if ( $aNr == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je nr in te geven.
  • " ; } $aPostCode=removeSomeChars($_POST["postcode"]); if ( $aPostCode == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je postcode in te geven.
  • " ; } else { if ( !preg_match("/^[0-9]+$/", $aPostCode ) ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve een geldige postcode in te geven.
  • " ; $aPostCode=""; } } $aTown=removeSomeChars($_POST["gemeente"]); if ( $aTown == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je gemeente in te geven.
  • " ; } $aTel=removeSomeChars($_POST["tel"]); if ( $aTel == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je telefoon of gsm nr in te geven.
  • " ; } $anEmail=removeSomeChars($_POST["email"]); if ( $anEmail == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je e-mail adres in te geven.
  • " ; // not required //$theHeader="From:Ik wou het niet zeggen"; } else { if ( !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $anEmail ) ) { $isValid = false ; $isValidFrom=false; $theErrorMsg .= "
  • Gelieve een geldig e-mail adres in te geven.
  • " ; } } $aWhatsapp=removeSomeChars($_POST["whatsapp"]); if ( $aWhatsapp == "" ) { $isValid = false ; $theErrorMsg .= "
  • Gelieve je keuze whatsapp te maken.
  • " ; } if ( removeSomeChars($_POST["sam1"])=="" && removeSomeChars($_POST["sam2"])=="" && removeSomeChars($_POST["sam3"])=="" && removeSomeChars($_POST["sam4"])=="" && removeSomeChars($_POST["sam5"])=="" && removeSomeChars($_POST["sam6"])=="" && removeSomeChars($_POST["sam7"])=="" ) { $isValid = false ; $samengevatstatus=false; $theErrorMsg .= "
  • Er moet wel iemand meegaan. Gelieve de rubriek samengevat correct in te vullen.
  • " ; } if ( $isValid ) { $theMsg ="\nNaam:"; $theMsg .="\n $aFirstName $aName "; $theMsg .="\nAdres:"; $theMsg .="\n $aStraat $aNr"; $theMsg .="\n $aPostCode $aTown"; $theMsg .="\nTel/GSM:"; $theMsg .="\n $aTel"; $theMsg .="\nWhatsapp:"; $theMsg .="\n $aWhatsapp"; $theMsg .="\nE-mail:"; $theMsg .="\n $anEmail"; $theMsg .="\n"; if ( isset( $_POST["mee"] ) ){ $theMsg .="\nIk wil meewerken !" ; $theMsg .="\nnamen :".removeSomeChars($_POST["meewerken"]); } $theMsg .="\n"; $totaal=0; $theMsg .="\n Samenvatting:"; $theMsg .="\n " .removeSomeChars($_POST["sam1"]). "x 100€ (wo - zo: +12 jaar) = ". (intval(removeSomeChars($_POST["sam1"])) * 100); $totaal = $totaal + intval(removeSomeChars($_POST["sam1"])) * 100; $theMsg .="\n " .removeSomeChars($_POST["sam2"]). "x 60€ (wo - zo: +4 jaar) = ". (intval(removeSomeChars($_POST["sam2"])) * 60); $totaal = $totaal + intval(removeSomeChars($_POST["sam2"])) * 60; $theMsg .="\n " .removeSomeChars($_POST["sam3"]). "x 30€ (wo - zo: -4 jaar) = ". (intval(removeSomeChars($_POST["sam3"])) * 30); $totaal = $totaal + intval(removeSomeChars($_POST["sam3"])) * 30; $theMsg .="\n " .removeSomeChars($_POST["sam4"]). "x 80€ (vr - zo: +12 jaar) = ". (intval(removeSomeChars($_POST["sam4"])) * 80); $totaal = $totaal + intval(removeSomeChars($_POST["sam4"])) * 80; $theMsg .="\n " .removeSomeChars($_POST["sam5"]). "x 50€ (vr - zo: +4 jaar) = ". (intval(removeSomeChars($_POST["sam5"])) * 50); $totaal = $totaal + intval(removeSomeChars($_POST["sam5"])) * 50; $theMsg .="\n " .removeSomeChars($_POST["sam6"]). "x 25€ (vr - zo: -4 jaar) = ". (intval(removeSomeChars($_POST["sam6"])) * 25); $totaal = $totaal + intval(removeSomeChars($_POST["sam6"])) * 25; $theMsg .="\n " .removeSomeChars($_POST["sam7"]). "x 30€ (vr 5 juli) = ". (intval(removeSomeChars($_POST["sam7"])) * 30); $totaal = $totaal + intval(removeSomeChars($_POST["sam7"])) * 30; $theMsg .="\n " .removeSomeChars($_POST["sam8"]). "x 80€ (wo - vr: +12 jaar) = ". (intval(removeSomeChars($_POST["sam8"])) * 80); $totaal = $totaal + intval(removeSomeChars($_POST["sam8"])) * 80; $theMsg .="\n " .removeSomeChars($_POST["sam9"]). "x 50€ (wo - vr: +4 jaar) = ". (intval(removeSomeChars($_POST["sam9"])) * 50); $totaal = $totaal + intval(removeSomeChars($_POST["sam9"])) * 50; $theMsg .="\n " .removeSomeChars($_POST["sam10"]). "x 25€ (wo - vr: -4 jaar) = ". (intval(removeSomeChars($_POST["sam10"])) * 25); $totaal = $totaal + intval(removeSomeChars($_POST["sam10"])) * 25; $theMsg .="\n totaal is " . $totaal; $theMsg .="\n"; $theMsg .="\n"; $theMsg .="\nfam naam;voornaam;gebdat;ziekenkas;slapen;t-shirt;weekend;"; $theMsg .="\n".removeSomeChars($_POST["famnaam1"]).";".removeSomeChars($_POST["voornaam1"]).";".removeSomeChars($_POST["gebdat1"]).";".removeSomeChars($_POST["ziekenkas1"]).";".removeSomeChars($_POST["slapen1"]).";".removeSomeChars($_POST["tshirt1"]).";".removeSomeChars($_POST["weekend1"]).";"; $theMsg .="\n".removeSomeChars($_POST["famnaam2"]).";".removeSomeChars($_POST["voornaam2"]).";".removeSomeChars($_POST["gebdat2"]).";".removeSomeChars($_POST["ziekenkas2"]).";".removeSomeChars($_POST["slapen2"]).";".removeSomeChars($_POST["tshirt2"]).";".removeSomeChars($_POST["weekend2"]).";"; $theMsg .="\n".removeSomeChars($_POST["famnaam3"]).";".removeSomeChars($_POST["voornaam3"]).";".removeSomeChars($_POST["gebdat3"]).";".removeSomeChars($_POST["ziekenkas3"]).";".removeSomeChars($_POST["slapen3"]).";".removeSomeChars($_POST["tshirt3"]).";".removeSomeChars($_POST["weekend3"]).";"; $theMsg .="\n".removeSomeChars($_POST["famnaam4"]).";".removeSomeChars($_POST["voornaam4"]).";".removeSomeChars($_POST["gebdat4"]).";".removeSomeChars($_POST["ziekenkas4"]).";".removeSomeChars($_POST["slapen4"]).";".removeSomeChars($_POST["tshirt4"]).";".removeSomeChars($_POST["weekend4"]).";"; $theMsg .="\n".removeSomeChars($_POST["famnaam5"]).";".removeSomeChars($_POST["voornaam5"]).";".removeSomeChars($_POST["gebdat5"]).";".removeSomeChars($_POST["ziekenkas5"]).";".removeSomeChars($_POST["slapen5"]).";".removeSomeChars($_POST["tshirt5"]).";".removeSomeChars($_POST["weekend5"]).";"; $theMsg .="\n".removeSomeChars($_POST["famnaam6"]).";".removeSomeChars($_POST["voornaam6"]).";".removeSomeChars($_POST["gebdat6"]).";".removeSomeChars($_POST["ziekenkas6"]).";".removeSomeChars($_POST["slapen6"]).";".removeSomeChars($_POST["tshirt6"]).";".removeSomeChars($_POST["weekend6"]).";"; $theMsg .="\n\n$aStraat;$aNr;$aPostCode;$aTown;$aTel;$anEmail;$aWhatsapp"; date_default_timezone_set('Europe/Brussels'); $file = '2024-' . $aName . "-" . date("Ymd-His") . ".txt"; file_put_contents( '/home/p15507pe/peestoemp.be/ann/' . $file, $theMsg); mail( "annbossche@hotmail.com", $file, "nieuwe inschrijving" ); mail( "erik@peestoemp.be", $file, "nieuwe inschrijving" ); if (file_exists('phpmailer/class.phpmailer.php')) { include( 'phpmailer/class.phpmailer.php' ); //echo 'BOE!'; /** * Function to create a mail object for futher use (uses phpMailer) * @param string From e-mail address * @param string From name * @param string E-mail subject * @param string Message body * @return object Mail object */ function phpMail( $from, $fromname, $subject, $body , $to) { $mail = new PHPMailer(); $mail->IsMail(); $mail->From = $from; $mail->FromName = $fromname; $mail->Subject = $subject; $mail->Body = $body; $mail->AddAddress($to); $mailssend = $mail->Send(); //echo "Mails send: $mailssend"; exit; if( $mail->error_count > 0 ) { //echo ( "The mail message $fromname <$from> about $subject to $recipient failed
    $body
    "); //echo ( "Mailer Error: " . $mail->ErrorInfo . "" ); } return $mailssend; } phpMail( $anEmail, $aFirstName .' '. $aName, $theSubject, $theMsg, $theMailto); } else { /** * http://php.belnet.be/manual/nl/ref.mail.php#53704 * * The most common problem people have with the mail() function * is the failure to include an additional header containing the from address in the call * (along with the standard from address). * This commonly results in failed delivery due to spam filtering at the receiving end. * The solution: set your header-from address, or use this function: */ function mail_nvlp($fromname, $fromaddress, $toname, $toaddress, $subject, $message) { // Copyright 2005 ECRIA LLC, http://www.ECRIA.com // Please use or modify for any purpose but leave this notice unchanged. $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; // $headers .= "X-Priority: 3\r\n"; // $headers .= "X-MSMail-Priority: Normal\r\n"; // $headers .= "X-Mailer: php\r\n"; $headers .= "BCC: erik@peestoemp.be\r\n"; $headers .= $theHeader; return mail($toaddress, $subject, $message, $headers); } mail_nvlp($aFirstName .' '. $aName, $anEmail, '', $theMailto, $theSubject, $theMsg); } include('ok.html'); exit; } // if ( $_POST["post"] == "" ) { $isValid = true ; $isValidFrom = true ; $aName=""; $aFirstName=""; $aStraat=""; $aNr=""; $aPostCode="2250"; $aTown="Olen"; $anEmail=""; } ?> Peestoemp : Kamp 2024

    Achtste editie : Peestoemp 2024.

    Inschrijvings formulier

    FamilienaamVoornaamGeboorte -datumZiekenfondsSlapen
    (B= binnen T=tent C= caravan/mobilhome)
    T-shirt
    kindermaat (vanaf maat 92) of S-M-L-XL-XXL
    Week / weekend / 1 dag
    ".$tt.""; $tt++ ;} ?> * ".$tt.""; $tt++ ;} ?> *" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">
    " tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">
    " tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">
    " tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">
    " tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">
    " tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">" tabindex="1">
    */ ?>
    *= legende SLAPEN in een zaal slapen bij bepaalde groep/personen + namen
    HEEL BELANGRIJK: Er is genoeg plaats om iedereen binnen te laten slapen. Als je wil, kan je ook je eigen slaapplaats meebrengen. Geef duidelijk aan bij de inschrijving waaruit deze slaapplaats bestaat (tent, caranvan, ...).


    straat : ".$tt.""; $tt++ ;} ?> * nr : ".$tt.""; $tt++ ;} ?> *
    postcode : ".$tt.""; $tt++ ;} ?> * gemeente : ".$tt.""; $tt++ ;} ?> *
    gsm/tel : ".$tt.""; $tt++ ;} ?> * e-mail : ".$tt.""; $tt++ ;} ?> *
    whatsapp : Ja / Nee ".$tt.""; $tt++ ;} ?> *  


    "samengevat": ".$tt.""; $tt++ ;} ?> " tabindex="1">x100€(wo - zo: +12 jaar)door de rubriek "samengevat" in te vullen, weten wij wie van wanneer tot wanneer meegaat op PEESTOEMP en welke leeftijd de deelnemers hebben.
    " tabindex="1">x60€(wo - zo: +4 jaar)
    " tabindex="1">x30€(wo - zo: -4 jaar)
    " tabindex="1">x80€(vr - zo: +12 jaar)
    " tabindex="1">x50€(vr - zo: +4 jaar)
    " tabindex="1">x25€(vr - zo: -4 jaar)
    Deelname 1 dag" tabindex="1">x30€(vrijdag 5 juli)
    " tabindex="1">x80€(woe - vr: +12 jaar)
    " tabindex="1">x50€(woe - vr: +4 jaar)
    " tabindex="1">x25€(woe - vr: -4 jaar)
    tabindex="1"> Ik wil graag meewerken aan programma's: (namen): " tabindex="1">

    Je inschrijving is pas geldig nadat we het bedrag hebben ontvangen op de rekening BE69 7433 3447 2178, dus doe zo snel mogelijk de overschrijving.

    Fouten
    Er zijn fouten in het formulier, gelieve ze te verbeteren.