7 berichten aan het bekijken - 1 tot 7 (van in totaal 7)
  • Q:
    Bijdrager
    sillie83

    PHP Email formulier controleert email adres niet

    Goedemiddag mensen ik heb een emailformulier gemaakt, deze controleert of de velden ingevuld zijn als er op verzend wordt gedrukt, wanneer dit niet het geval is krijgt men een foutmelding te zien. Dit werk bij al mijn velden behalve bij mijn invoerveld van het emailadres, als ik deze leeg laat en op verzend klik verstuurt hij het formulier gewoon.

    [code:1:53a4838c00]<?php
    if(!empty($_POST)) extract($_POST);

    if ($action == "send") {

    //$to = "silvia <[email protected]>";
    $to = "silvia <[email protected]>";
    $subject = "Aanvraag factsheets via website";

    $message = "
    Naam: $voorvoegsel $naam
    Bedrijfsnaam: $bedrijf
    Adres: $adres
    Postcode, Plaats: $postcode $plaats
    Telefoon: $telefoonnummer
    Email: $emailadres
    Bezoeker wil graag de volgende case study’s ontvangen:
    $factsheet1
    $factsheet2
    $factsheet3
    $factsheet4
    $factsheet5
    $factsheet6
    $factsheet7
    $factsheet8
    $factsheet9
    $factsheet10
    $factsheet11
    $factsheet13
    $factsheet14
    $factsheet15
    $factsheet16
    $factsheet17
    $factsheet18
    $factsheet19
    $factsheet20
    $factsheet21
    $factsheet22
    $factsheet23
    $factsheet24
    $factsheet25
    $factsheet26
    $factsheet27
    $factsheet28
    $factsheet29
    $factsheet30
    ";

    $headers = "From: $voorvoegsel $naam <$emailadres>rn";

    mail($to, $subject, $message, $headers);
    header ("location: reactie.html");
    exit;

    }
    ?>

    <html>

    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Aanvraag Casestudies</title>

    <script language="JavaScript">
    <!–
    // Check for valid emailadress
    function isEmail(elm) {
    var str = elm.value;
    if (elm.value.indexOf("@") + "" != "-1" &&
    elm.value.indexOf(".") + "" != "-1" &&
    str.substr(0,4) != "info" &&
    str.substr(0,4) != "INFO" &&

    elm.value != "")

    return true;
    else
    return false;
    }

    function isReady(form){

    // is het voornaam veld ingevuld?
    if (mailform.naam.value == "") {
    alert( "Uw naam invullen a.u.b." );
    mailform.naam.focus();
    return false ;
    }

    // is het bedrijfsnaam veld ingevuld?
    if (mailform.bedrijf.value == "") {
    alert( "Uw bedrijfsnaam invullen a.u.b." );
    mailform.bedrijf.focus();
    return false ;
    }

    // is het adres veld ingevuld?
    if (mailform.adres.value == "") {
    alert( "Uw adres invullen a.u.b." );
    mailform.adres.focus();
    return false ;
    }

    // is het postcode veld ingevuld?
    if (mailform.postcode.value == "") {
    alert( "Uw postcode invullen a.u.b." );
    mailform.postcode.focus();
    return false ;
    }

    // is het plaatsnaam veld ingevuld?
    if (mailform.plaats.value == "") {
    alert( "Plaatsnaam invullen a.u.b." );
    mailform.plaats.focus();
    return false ;
    }

    // is het telefoonnummer veld ingevuld?
    if (mailform.telefoonnummer.value == "") {
    alert( "Uw telefoonnummer invullen a.u.b." );
    mailform.telefoonnummer.focus();
    return false ;
    }
    // is het mobiel veld ingevuld?
    if (mailform.mobiel.value == "") {
    alert( "Uw mobiel nummer invullen a.u.b." );
    mailform.mobiel.focus();
    return false ;
    }
    // is het emailadres veld ingevuld?
    if (isEmail(mailform.emailadres) == false) {
    alert("Uw e-mail adres invullen a.u.b.nDit mag geen ‘[email protected]’ e-mailadres zijn.");
    mailform.emailadres.focus();
    return false;
    }

    return true ;
    }

    //–>
    </script>
    <csscriptdict import>
    <script type="text/javascript" src="file:///Users/Mac2/Library/Preferences/Adobe/GoLive/Settings7/JScripts/GlobalScripts/CSScriptLib.js"></script>
    </csscriptdict>
    <csactiondict>
    <script type="text/javascript"><!–
    var preloadFlag = true;

    // –></script>
    </csactiondict>
    </head>

    <body bgcolor="#ff003c" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
    <table width="822" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="white" height="100%">
    <tr height="100">
    <td width="51" height="100">
    <form action="aanvraag-casestudies.php" method="POST" name="mailform" onSubmit="return isReady(this)">
    <input type="hidden" name="action" value="send">
    <td colspan="3" align="left" valign="middle" width="743" height="100">
    <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr height="25">
    <td align="left" valign="top" width="138" height="25"></td>
    <td height="25"></td>
    <td width="30" height="25"></td>
    </tr>
    <tr>
    <td align="center" width="138"></td>
    <td><img src="" alt="" height="45" width="289" border="0"></td>
    <td width="30"></td>
    </tr>
    </table>
    </td>
    <td width="30" height="100"></td>
    </tr>
    <tr height="30">
    <td width="51" height="30"></td>
    <td width="151" height="30"></td>
    <td width="10" height="30"></td>
    <td width="582" height="30"></td>
    <td width="30" height="30"></td>
    </tr>
    <tr height="20">
    <td width="51" height="20"></td>
    <td width="151" height="20"></td>
    <td width="10" height="20"></td>
    <td width="582" height="20"><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>Ja, ik wil graag de volgende case studies ontvangen:</b></font></td>
    <td width="30" height="20"></td>
    </tr>
    <tr height="20">
    <td width="51" height="20"></td>
    <td width="151" height="20"></td>
    <td width="10" height="20"></td>
    <td width="582" height="20"></td>
    <td width="30" height="20"></td>
    </tr>
    <tr height="410">
    <td width="51" height="410"></td>
    <td colspan="3" align="left" valign="top" width="743" height="410">
    <table width="651" border="0" cellspacing="0" cellpadding="0">
    <tr align="left" valign="middle" height="17">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="17"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="17"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="17"></td>
    <td bgcolor="#dedede" width="10" height="17"></td>
    <td bgcolor="#dedede" width="135" height="17"></td>
    <td bgcolor="#dedede" width="10" height="17"></td>
    <td bgcolor="#dedede" width="137" height="17"></td>
    <td bgcolor="#dedede" width="10" height="17"></td>
    <td bgcolor="#dedede" width="130" height="17"></td>
    <td bgcolor="#dedede" width="5" height="17"></td>
    </tr>
    <tr align="left" valign="middle" height="32">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="32">
    <div align="right">
    <font size="2" color="#ff003c" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>Bouw en vastgoed</b></font></div>
    </td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="32"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="32"><b><font size="1"><input type="checkbox" name="factsheet1" value="BenV-Bouwtaak"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Bouwtaak </font></b></td>
    <td bgcolor="#dedede" width="10" height="32"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="32"><b><font size="1"><input type="checkbox" name="factsheet2" value="BenV-Corus"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Corus</font></b></td>
    <td bgcolor="#dedede" width="10" height="32"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="32"><b><font size="1"><input type="checkbox" name="factsheet3" value="BenV-DC Vastgoed 1"> </font><font size="1"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">DC Vastgoed 1</font></b></td>
    <td bgcolor="#dedede" width="10" height="32"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="32"><b><font size="1"><input type="checkbox" name="factsheet4" value="BenV-DC Vastgoed 2"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">DC Vastgoed 2</font></b></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="32"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet5" value="BenV-Haarlemmermeer"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Haarlemmermeer</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet6" value="BenV-Heymans"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Heymans</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"><input type="checkbox" name="factsheet7" value="BenV-Proper-Stok"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Proper-Stok</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"><b><font size="1"><input type="checkbox" name="factsheet8" value="BenV-Rabo Vastgoed 1"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Rabo Vastgoed 1</font></b></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet9" value="BenV-Rabo Vastgoed 2"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Rabo Vastgoed 2</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet10" value="BenV-Rabo Vastgoed 3"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Rabo Vastgoed 3</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><font size="1"><input type="checkbox" name="factsheet11" value="BenV-Sament"></font><b><font size="1"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Sament</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"><b><font size="1"><input type="checkbox" name="factsheet12" value="BenV-Unica"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Unica</font></b></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet13" value="BenV-Gemeente Veghel"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Gem. Veghel</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet14" value="BenV-De Vree en Sliepen 1"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">De Vree &amp; Sliepen 1</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"><input type="checkbox" name="factsheet15" value="BenV-Rabo Vastgoed 1"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">De Vree &amp; Sliepen 2</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" width="151" height="15"></td>
    <td align="left" valign="top" width="10" height="15"></td>
    <td align="left" valign="top" width="125" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="135" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="137" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="130" height="15"></td>
    <td align="left" valign="top" width="5" height="15"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="15"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30">
    <div align="right">
    <font size="2" color="#ff003c" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>ICT</b></font></div>
    </td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet16" value="ICT-Aranea"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Aranea</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet17" value="ICT-Business Objects"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Business Objects</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"><input type="checkbox" name="factsheet18" value="ICT-Comparex"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Comparex</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"><b><font size="1"><input type="checkbox" name="factsheet20" value="ICT-HP"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">HP</font></b></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet21" value="ICT-SAP"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">SAP</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet22" value="ICT-Wacom"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Wacom</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"> </font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" width="151" height="15"></td>
    <td align="left" valign="top" width="10" height="15"></td>
    <td align="left" valign="top" width="125" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="135" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="137" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="130" height="15"></td>
    <td align="left" valign="top" width="5" height="15"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="15"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30">
    <div align="right">
    <font size="2" color="#ff003c" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>Financi&euml;le Dienstverlening</b></font></div>
    </td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet23" value="Fin-Athena"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Athena</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet24" value="Fin-ING"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">ING Bank</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"><input type="checkbox" name="factsheet24" value="Fin-NVBA"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">NVBA</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"><b><font size="1"><input type="checkbox" name="factsheet25" value="Fin-Noordborgh"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Noordborgh</font></b></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet26" value="Fin-Rabobank"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Rabobank</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet27" value="Fin-Recources"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Resources</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"> </font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="16">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="16"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="16"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="16"></td>
    <td bgcolor="#dedede" width="10" height="16"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="16"></td>
    <td bgcolor="#dedede" width="10" height="16"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="16"></td>
    <td bgcolor="#dedede" width="10" height="16"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="16"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="16"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" width="151" height="15"></td>
    <td align="left" valign="top" width="10" height="15"></td>
    <td align="left" valign="top" width="125" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="135" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="137" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="130" height="15"></td>
    <td align="left" valign="top" width="5" height="15"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="15"></td>
    <td bgcolor="#dedede" width="10" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="15"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="15"></td>
    </tr>
    <tr align="left" valign="middle" height="30">
    <td align="left" valign="top" bgcolor="#dedede" width="151" height="30">
    <div align="right">
    <font size="2" color="#ff003c" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>Overigen</b></font></div>
    </td>
    <td align="left" valign="top" bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="125" height="30"><b><font size="1"><input type="checkbox" name="factsheet28" value="Overigen-Harderwijk"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Harderwijk</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="135" height="30"><b><font size="1"><input type="checkbox" name="factsheet29" value="Overigen-KvK"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">KvK</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="137" height="30"><b><font size="1"><input type="checkbox" name="factsheet30" value="Overigen-RSG"> </font><font size="1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">RSG</font></b></td>
    <td bgcolor="#dedede" width="10" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="130" height="30"></td>
    <td align="left" valign="top" bgcolor="#dedede" width="5" height="30"></td>
    </tr>
    <tr align="left" valign="middle" height="15">
    <td align="left" valign="top" width="151" height="15"></td>
    <td align="left" valign="top" width="10" height="15"></td>
    <td align="left" valign="top" width="125" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="135" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="137" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="top" width="130" height="15"></td>
    <td align="left" valign="top" width="5" height="15"></td>
    </tr>
    </table>
    </td>
    <td width="30" height="410"></td>
    </tr>
    <tr height="30">
    <td width="51" height="30"></td>
    <td width="151" height="30"><b><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Naam</font></td>
    <td width="10" height="30"></td>
    <td width="582" height="30"><select name="voorvoegsel" style="width: 70px;">
    <option value="Dhr.">Dhr.</option>
    <option value="Mevr.">Mevr.</option>
    </select>&nbsp;<input type="text" name="naam" value="" style="width: 415px;" size="39" tabindex="1" ></td>
    <td width="30" height="30"></td>
    </tr>
    <tr height="30">
    <td width="51" height="30"></td>
    <td width="151" height="30"><b><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Bedrijfsnaam</font></td>
    <td width="10" height="30"></td>
    <td width="582" height="30"><input type="text" name="bedrijf" value="" style="width: 490px;" size="51" tabindex="2"></td>
    <td width="30" height="30"></td>
    </tr>
    <tr height="30">
    <td width="51" height="30"></td>
    <td width="151" height="30"><b><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Adres</font></td>
    <td width="10" height="30"></td>
    <td width="582" height="30"><input type="text" name="adres" value="" style="width: 490px;" size="51" tabindex="3"></td>
    <td width="30" height="30"></td>
    </tr>
    <tr height="32">
    <td width="51" height="32"></td>
    <td width="151" height="32"><b><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Postcode en plaatsnaam</font></td>
    <td width="10" height="32"></td>
    <td width="582" height="32"><input type="text" name="postcode" value="" style="width: 120px;" size="16" tabindex="4">&nbsp;<input type="text" name="plaats" value="" style="width: 365px;" size="26" tabindex="5"></td>
    <td width="30" height="32"></td>
    </tr>
    <tr height="30">
    <td width="51" height="30"></td>
    <td width="151" height="30"><b><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Telefoonnummer </font></td>
    <td width="10" height="30"></td>
    <td width="582" height="30"><input type="text" name="telefoonnummer" value="" style="width: 490px;" size="51" tabindex="6"></td>
    <td width="30" height="30"></td>
    </tr>
    <tr height="30">
    <td width="51" height="30"></td>
    <td width="151" height="30"><b><font size="2" color="black" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">E-mail adres</font></td>
    <td width="10" height="30"></td>
    <td width="582" height="30"><input type="text" name="emailadres" value="" style="width: 490px;" size="50" tabindex="7"></td>
    <td width="30" height="30"></td>
    </tr>
    <tr height="15">
    <td width="51" height="15"></td>
    <td width="151" height="15"></td>
    <td width="10" height="15"></td>
    <td align="left" valign="bottom" width="582" height="15"></td>
    <td width="30" height="15"></td>
    </tr>
    <tr height="35">
    <td width="51" height="35"></td>
    <td width="151" height="35"><input type="hidden" name="action" value="send"></td>
    <td width="10" height="35"></td>
    <td align="left" valign="bottom" width="582" height="35"><a onmouseover="changeImages(’verzend’,’verzend-over.gif’);return true" onmouseout="changeImages(’verzend’,’verzend.gif’);return true" href="#"><input id="verzend" type="image" name="verzend" src="verzend.gif" border="0" alt="Verzend" onMouseOver="this.src=’verzend-over.gif’" onMouseOut="this.src=’verzend.gif’"></a></td>
    <td width="30" height="35"></td>
    </tr>
    <tr height="20">
    <td width="51" height="20"></td>
    <td width="151" height="20"></td>
    <td width="10" height="20"></td>
    <td width="582" height="20"></td>
    <td width="30" height="20"></td>
    </tr>
    </form>
    </table>
    </body>

    </html>[/code:1:53a4838c00]

    Wat zit er fout in mijn php? Kan iemand mij hier misschien mee helpen?

    Alvast bedankt!!

    Bijdrager
    Lifelogger

    Je PHP code controleert je mail adres niet, dat doet het stukje javascript.

    Bijdrager
    sillie83

    Bedankt voor je reactie, maar wat mis ik dan, ik heb dit phptje al eerder gebruikt in een andere website en daar werkt alles.
    Alle andere invoervelden worden wel gecontroleerd en verschijnt er wel een foutmelding wanneer er niks ingevoerd word, waarom dan alleen bij het emailadres niet?

    Bijdrager
    BenDover

    Ben geen coder maar:

    if (mailform.mobiel.value == “”) {

    if (isEmail(mailform.emailadres) == false) {

    Er zit natuurlijk een extra stukje op de email check (begin van het script), waarschijnlijk geeft die altijd “true” aan?

    Lid
    Pepperonie

    Als ik jou was zou ik ook in php een stuk inbouwen dat controleert wat er is ingevuld.
    JS is namelijk heel makelijk te omzeilen. PHP niet, want dat draait op de server.

    Bijdrager
    Oost

    OMG:x de tranen springen me spontaan in de ogen bij het zien van je bron code :cry:

    Bijdrager
    sillie83

    Bedankt voor jullie reacties, maar ik ben er nog steeds niet uit ben aan het kijken voor een php script om de javascript te omzeilen, zoals een van jullie zei.

    ”Oost!”

    OMG:x de tranen springen me spontaan in de ogen bij het zien van je bron code :cry:

    sorry, maar aan dit soort commentaar heb ik niet zoveel aan…:D Ik ben een beginneling als ik een pro zou zijn, zou ik jullie niet om hulp vragen

    Als er iemand nog ideeen/tips heeft graag

7 berichten aan het bekijken - 1 tot 7 (van in totaal 7)

Je moet ingelogd zijn om een reactie op dit onderwerp te kunnen geven.