Action form - htmlspecialchars-check + editFormAction tag

In order to get the form controls work, I had to remove the <? PHP echo $editFormAction;? > starting from the action in the form tag. How can I combine these 2 so that the record is inserted but still checked?

<? PHP

$editFormAction = $_SERVER ['PHP_SELF'];

If (isset {}

$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

}

If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "contact_form")) {}

}

? >

< html >

< head >

< / head >

< body >

<? PHP

form controls

If ($_SERVER ['REQUEST_METHOD'] == 'POST') {}

If (empty($_POST["name"])) {}

$nameErr = 'Please enter your name.";

}

...

? >

< do action = "<?" PHP echo htmlspecialchars($_SERVER["PHP_SELF"]);? ">" method = "POST" id = "contact_form" name = "contact_form" >

< / make >

< / body >

Take a look at the tutorial of Nancy to Alt-Web Design & Publishing: Contact form sensitive with 3.2 Bootstrap and PHP (part 1)

Tags: Dreamweaver

Similar Questions

  • 1 form, 2 actions to do: check the captcha and put data into the database

    Hello

    I am trying to create a registration page that puts the data entered by the user in a database. That part works: there is a connection to the database and the information is placed in the database correctly. To avoid spam, I would add captcha on the form. I've been looking at the possibilities of reCaptcha, and the result is the following: the image appears correctly and the image is renewed when you click on the link. But the problem is that this captcha can be controlled without adding "verify.php" action to the form. How can I, in Dreamweaver, add a second action to the form? In other words, what code should I replace the part "$editFormAction"? Or I think entirely in a bad way? This is the first time I use Dreamweaver, I also never worked with php before.

    Here is the code I have now (I'm sorry guys but I'm Dutch ):

    <?php require_once('Connections/Klantenlijst.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      }
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    // *** Redirect if username exists
    $MM_flag="MM_insert";
    if (isset($_POST[$MM_flag])) {
      $MM_dupKeyRedirect="www.sint-jorishoeve.be";
      $loginUsername = $_POST['gebruikersnaam'];
      $LoginRS__query = sprintf("SELECT Gebruikersnaam FROM klantenlijst WHERE Gebruikersnaam=%s", GetSQLValueString($loginUsername, "text"));
      mysql_select_db($database_Klantenlijst, $Klantenlijst);
      $LoginRS=mysql_query($LoginRS__query, $Klantenlijst) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      //if there is a row in the database, the username was found - can not add the requested username
      if($loginFoundUser){
        $MM_qsChar = "?";
        //append the username to the redirect page
        if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
        $MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar ."requsername=".$loginUsername;
        header ("Location: $MM_dupKeyRedirect");
        exit;
      }
    }
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "registreren")) {
      $insertSQL = sprintf("INSERT INTO klantenlijst (`Voornaam ruiter`, `Familienaam ruiter`, `Geboortedatum dag`, `Geboortedatum maand`, `Geboortedatum jaar`, `E-mailadres 1`, `Telefoon 1`, Gebruikersnaam, Paswoord) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['voornaam_ruiter'], "text"),
                           GetSQLValueString($_POST['voornaam_ruiter'], "text"),
                           GetSQLValueString($_POST['geboortedatum_ddag'], "int"),
                           GetSQLValueString($_POST['geboortedatum_maand'], "text"),
                           GetSQLValueString($_POST['geboortedatum_jaar'], "int"),
                           GetSQLValueString($_POST['e-mailadres_1'], "text"),
                           GetSQLValueString($_POST['telefoon'], "int"),
                           GetSQLValueString($_POST['gebruikersnaam'], "text"),
                           GetSQLValueString($_POST['paswoord'], "text"));
      mysql_select_db($database_Klantenlijst, $Klantenlijst);
      $Result1 = mysql_query($insertSQL, $Klantenlijst) or die(mysql_error());
      $insertGoTo = "aanmelden.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $insertGoTo));
    }
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "registratie")) {
      $insertSQL = sprintf("INSERT INTO klantenlijst (`Voornaam ruiter`, `Familienaam ruiter`, `Geboortedatum dag`, `Geboortedatum maand`, `Geboortedatum jaar`, `Opmerkingen / Medisch`, `Voornaam contactpersoon 1`, `Familienaam contactpersoon 1`, `Contactpersoon 1 is`, `Voornaam contactpersoon 2`, `Familienaam contactpersoon 2`, `Contactpersoon 2 is`, `E-mailadres 1`, `E-mailadres 2`, `Telefoon 1`, `Telefoon 2`, `Telefoon 3`, Opmerkingen, Gebruikersnaam, Paswoord) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['voornaam_ruiter'], "text"),
                           GetSQLValueString($_POST['familienaam_ruiter'], "text"),
                           GetSQLValueString($_POST['geboortedatum_dag'], "int"),
                           GetSQLValueString($_POST['geboortedatum_maand'], "text"),
                           GetSQLValueString($_POST['geboortedatum_jaar'], "date"),
                           GetSQLValueString($_POST['opmerkingen_ruiter'], "text"),
                           GetSQLValueString($_POST['voornaam_contactpersoon_1'], "text"),
                           GetSQLValueString($_POST['familienaam_contactpersoon_1'], "text"),
                           GetSQLValueString($_POST['contactpersoon_1_is'], "text"),
                           GetSQLValueString($_POST['voornaam_contactpersoon_2'], "text"),
                           GetSQLValueString($_POST['familienaam_contactpersoon_2'], "text"),
                           GetSQLValueString($_POST['contactpersoon_2_is'], "text"),
                           GetSQLValueString($_POST['emailadres_1'], "text"),
                           GetSQLValueString($_POST['emailadres_2'], "text"),
                           GetSQLValueString($_POST['telefoon_1'], "int"),
                           GetSQLValueString($_POST['telefoon_2'], "int"),
                           GetSQLValueString($_POST['telefoon_3'], "int"),
                           GetSQLValueString($_POST['opmerkingen_contactpersoon'], "text"),
                           GetSQLValueString($_POST['gebruikersnaam'], "text"),
                           GetSQLValueString($_POST['paswoord'], "text"));
      mysql_select_db($database_Klantenlijst, $Klantenlijst);
      $Result1 = mysql_query($insertSQL, $Klantenlijst) or die(mysql_error());
      $insertGoTo = "http://www.sint-jorishoeve.be";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $insertGoTo));
    }
    mysql_select_db($database_Klantenlijst, $Klantenlijst);
    $query_Contactenlijst = "SELECT * FROM klantenlijst";
    $Contactenlijst = mysql_query($query_Contactenlijst, $Klantenlijst) or die(mysql_error());
    $row_Contactenlijst = mysql_fetch_assoc($Contactenlijst);
    $totalRows_Contactenlijst = mysql_num_rows($Contactenlijst);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Manege Sint-Jorishoeve</title>
    <style type="text/css">
    <!--
    body,td,th {
     font-family: Verdana, Geneva, sans-serif;
     font-size: 10px;
     color: #300;
     font-weight: bold;
    }
    body {
     background-color: #FF9;
     font-family: Verdana, Geneva, sans-serif;
     font-size: 12px;
     font-style: normal;
     line-height: normal;
     font-weight: normal;
     font-variant: normal;
     text-transform: none;
     color: #300;
    }
    a {
     font-family: Verdana, Geneva, sans-serif;
     font-size: 12px;
     color: #F90;
    }
    a:visited {
     color: #F90;
    }
    a:hover {
     color: #F90;
    }
    a:active {
     color: #F90;
    }
    h1,h2,h3,h4,h5,h6 {
     font-family: Verdana, Geneva, sans-serif;
    }
    h1 {
     font-size: 14px;
     color: #300;
    }
    -->
    </style>
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationCheckbox.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationCheckbox.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    function MM_effectHighlight(targetElement, duration, startColor, endColor, restoreColor, toggle)
    {
     Spry.Effect.DoHighlight(targetElement, {duration: duration, from: startColor, to: endColor, restoreColor: restoreColor, toggle: toggle});
    }
    function MM_showHideLayers() { //v9.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) 
      with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    //-->
    </script>
    <link href="SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <h1>Registreren</h1>
    <p><em>Let op: Dit is een registratie voor een volledig nieuwe account met nieuwe gebruikersnaam en paswoord.</em><em></em></p>
    <p><em>Indien u een persoon aan uw account wilt toevoegen (met dezelfde gebruikersnaam), doe dit via 'Mijn gegevens'.</em> </p>
    <p> </p>
    <script type="text/javascript">
    var RecaptchaOptions = {
     lang : 'nl',       
     theme : 'custom',
     custom_theme_widget: 'recaptcha_widget'
     };
        </script>
    <form action="<?php echo $editFormAction; ?>" method="POST" enctype="application/x-www-form-urlencoded" name="registratie" id="registratie" onSubmit="MM_showHideLayers('registratie','','hide')">
      <p><strong>GEGEVENS VAN DE TE REGISTREREN PERSOON</strong></p>
      <p>Voornaam*:
        <span id="sprytextfield9">
        <label>
          <input name="voornaam_ruiter" type="text" id="voornaam_ruiter" size="25" maxlength="50">
        </label>
      <span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldMaxCharsMsg">Hier kan u max. 50 karakters invullen!</span><span class="textfieldMinCharsMsg">Dit veld is verplicht in te vullen!</span></span> </p>
      <p>Familienaam*: <span id="sprytextfield10">
        <label>
          <input name="familienaam_ruiter" type="text" id="familienaam_ruiter" size="25" maxlength="50">
        </label>
        <span class="textfieldMaxCharsMsg">Hier kan u max. 50 karakters invullen!</span></span> </p>
      <p>Geboortedatum*: 
        <span id="sprytextfield11">
        <label>
          <input name="geboortedatum_dag" type="text" id="geboortedatum_dag" value="00" size="4" maxlength="2">
        </label>
        <span class="textfieldInvalidFormatMsg">Gebruik het aangegeven formaat aub.!</span><span class="textfieldMinCharsMsg">Gebruik het aangegeven formaat!</span><span class="textfieldMaxCharsMsg">Dit is geen geldige dag van de maand!</span><span class="textfieldMinValueMsg">Dit is geen geldige dag van de maand!</span><span class="textfieldMaxValueMsg">Dit is geen geldige dag van de maand!</span></span><span id="spryselect2">
        <label>
          <select name="geboortedatum_maand" id="geboortedatum_maand">
            <option selected> </option>
            <option value="Januari">Januari</option>
            <option value="Februari">Februari</option>
            <option value="Maart">Maart</option>
            <option value="April">April</option>
            <option value="Mei">Mei</option>
            <option value="Juni">Juni</option>
            <option value="Juli">Juli</option>
            <option value="Augustus">Augustus</option>
            <option value="September">September</option>
            <option value="Oktober">Oktober</option>
            <option value="November">November</option>
            <option value="December">December</option>
          </select>
        </label>
    <span class="selectRequiredMsg">Dit veld is verplicht in te vullen!</span></span><span id="sprytextfield12">
    <label>
      <input name="geboortedatum_jaar" type="text" id="geboortedatum_jaar" value="0000" size="8" maxlength="4">
    </label>
    <span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldInvalidFormatMsg">Dit is geen geldig geboortejaar!</span><span class="textfieldMinCharsMsg">Gebruik het aangegeven formaat aub.!</span><span class="textfieldMaxCharsMsg">Dit is geen geldig geboortejaar!</span><span class="textfieldMinValueMsg">Dit is geen geldig geboortejaar!</span><span class="textfieldMaxValueMsg">Dit is geen geldig geboortejaar!</span></span></p>
      <p><span id="sprytextfield13">
        <label>Opmerkingen / Medisch te weten:<span class="textfieldMaxCharsMsg">Hier mag u max. 100 karakters invullen!</span></label>
    </span>
        <input name="opmerkingen_ruiter" type="text" id="opmerkingen_ruiter" size="50" maxlength="100">
      </p>
      <p> </p>
      <p><strong>GEGEVENS VAN DE CONTACTPERSOON</strong></p>
      <p>Is de contactpersoon de te registreren persoon zelf *?
        <span id="spryselect4">
        <label>
          <select name="ja_nee" id="ja_nee">
            <option selected> </option>
            <option value="Ja">Ja</option>
            <option value="Nee">Nee</option>
          </select>
        </label>
      <span class="selectRequiredMsg">Dit veld is verplicht in te vullen!</span></span> </p>
      <p><em>Indien nee, specifiëer wie de contactpersoon is / contactpersonen zijn:</em></p>
      <p><strong>Contactpersoon 1: </strong></p>
      <p><em>Voornaam:     <span id="sprytextfield16">
        <input name="voornaam_contactpersoon_1" type="text" id="voornaam_contactpersoon_1" size="25" maxlength="50">
        <span class="textfieldMinCharsMsg">Dit is geen geldige voornaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></span><span>
        <label><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></label>
        </span> </em></p>
      <p><em>Familienaam: <span id="sprytextfield15">
        <label>
          <input type="text" name="familienaam_contactpersoon_1" id="familienaam_contactpersoon_1">
        </label>
      <span class="textfieldMinCharsMsg">Dit is geen geldige familienaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></span> </em></p>
      <p><em>Contactpersoon 1 is:
          <span id="spryselect3">
          <label>
            <select name="contactpersoon_1_is" id="contactpersoon_1_is">
              <option selected> </option>
              <option value="Ouder">Ouder</option>
              <option value="Andere familie">Andere familie</option>
              <option value="Geen familie">Geen familie</option>
            </select>
          </label>
    </span> </em></p>
      <p><strong>Contactpersoon 2:</strong></p>
      <p><em>Voornaam: <span id="sprytextfield7">
        <label>
          <input name="voornaam_contactpersoon_2" type="text" id="voornaam_contactpersoon_2" size="25" maxlength="50">
          <span class="textfieldMinCharsMsg">Dit is geen geldige voornaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></label>
    </span> </em></p>
      <p><em>Familienaam: <span id="sprytextfield8">
        <label>
          <input name="familienaam_contactpersoon_2" type="text" id="familienaam_contactpersoon_2" size="25" maxlength="50">
          <span class="textfieldMinCharsMsg">Dit is geen geldige familienaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></label>
    </span> </em></p>
      <p><em>Contactpersoon 2 is:
    <span id="spryselect1">
        <label></label>
        </span><span id="spryselect5">
        <select name="contactpersoon_2_is" id="contactpersoon_2_is">
          <option selected> </option>
          <option value="Ouder">Ouder</option>
          <option value="Andere familie">Andere familie</option>
          <option value="Geen familie">Geen familie</option>
        </select>
    </span><span>  <span class="selectRequiredMsg">Please select an item.</span></span> </em></p>
      <p> </p>
      <p>E-mailadres 1 *:
        <span id="sprytextfield6">
        <label>
          <input name="emailadres_1" type="text" id="emailadres_1" size="25" maxlength="50">
          <strong><em>      Kijk dit aub. na op typfouten!
        </em></strong></label>
        <em><strong><span class="textfieldInvalidFormatMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldMinCharsMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></strong></em></span></p>
      <p>E-mailadres 2: 
        <span id="sprytextfield5">
        <label>
          <input type="text" name="emailadres_2" id="emailadres_2">
        </label>
      <span class="textfieldInvalidFormatMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldMinCharsMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></span> </p>
      <p>Telefoon / GSM 1 *: 
        <span id="sprytextfield4">
        <label>
          <input name="telefoon_1" type="text" id="telefoon_1" size="20" maxlength="10">
        <em><strong>Kijk dit aub.   na op typfouten!</strong></em> </label>
        <span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldInvalidFormatMsg">Typ het telefoonnummer zonder streepjes of spaties in!</span><span class="textfieldMinValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMinCharsMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxCharsMsg">Typ het telefoonnummer zonder streepjes of spaties!</span></span></p>
      <p>Telefoon / GSM 2: 
        <span id="sprytextfield17">
        <label>
          <input name="telefoon_2" type="text" id="telefoon_2" size="20" maxlength="10">
        </label>
      <span class="textfieldInvalidFormatMsg">Typ het telefoonnummer zonder streepjes of spaties!</span><span class="textfieldMinValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxCharsMsg">Typ het telefoonnummer zonder streepjes of spaties!</span><span class="textfieldMinCharsMsg">Dit is geen geldig telefoonnummer!</span></span> </p>
      <p>Telefoon / GSM 3: 
        <span id="sprytextfield3">
        <label>
          <input name="telefoon_3" type="text" id="telefoon_3" size="20" maxlength="10">
        </label>
      <span class="textfieldInvalidFormatMsg">Typ het telefoonnummer zonder streepjes of spaties!</span><span class="textfieldMinValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMinCharsMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxCharsMsg">Typ het telefoonnummer zonder streepjes of spaties!</span></span> </p>
      <p>Opmerkingen ivm. contactpersoon: 
        <span id="sprytextfield2">
        <label>
          <input name="opmerkingen_contactpersoon" type="text" id="opmerkingen_contactpersoon" size="50" maxlength="100">
        </label>
        </span> </p>
      <p> </p>
      <p><strong>ACCOUNTGEGEVENS</strong></p>
      <p>Kies een gebruikersnaam *: 
        <span id="sprytextfield1">
        <label>
          <input name="gebruikersnaam" type="text" id="gebruikersnaam" size="25" maxlength="50">
        <em><strong>Kijk aub.  na op typfouten!</strong></em> </label>
        </span></p>
      <p><em>De gebruikersnaam moet tussen 6 en 50 karakters lang zijn en mag zowel letters als cijfers omvatten. </em></p>
      <p><em>Tip: gebruik uw e-mailadres als gebruikersnaam. Let op: de gebruikersnaam is hoofdlettergevoelig!</em></p>
      <p>Kies een paswoord *: 
        <span id="sprypassword2">
        <label>
          <input name="paswoord" type="password" id="paswoord" size="20" maxlength="15">
        </label>
      <span class="passwordRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="passwordMinCharsMsg">Het paswoord moet min. 6 karakters lang zijn!</span><span class="passwordMaxCharsMsg">Het paswoord mag max. 15 karakters lang zijn!</span><span class="passwordInvalidStrengthMsg">Het paswoord voldoet niet aan de voorwaarden!</span></span> </p>
      <p>Typ het paswoord opnieuw ter verificatie *: <span id="spryconfirm1">
        <label>
          <input type="password" name="paswoord_verificatie" id="paswoord_verificatie">
        </label>
      <span class="confirmRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="confirmInvalidMsg">De paswoorden komen niet overeen!</span></span></p>
      <p><em>Het paswoord moet tussen 6 en 15 karakters lang zijn, moet zowel letters als cijfers bevatten en mag geen</em></p>
      <p><em>speciale tekens bevatten. </em><em>Let op: het paswoord is hoofdlettergevoelig!</em></p>
      <p><em>Tip: schrijf het paswoord ergens op alvorens </em><em>het formulier te verzenden zodat u het niet vergeet. </em></p>
      <p> </p>
      <p>
        <span id="sprycheckbox1">
        <label>
          <input name="akkoord_privacy" type="checkbox" id="akkoord_privacy" value="akkoord">
        </label>
      <span class="checkboxRequiredMsg">Verplicht aan te vinken!.</span></span> Ik bevestig dat zowel de te registreren persoon als de contactpersoon het <a href="http://www.sint-jorishoeve.be/privacy.htm" target="_blank">Privacy Statement</a> gelezen </p>
      <p>hebben en hiermee akkoord gaan. </p>
      <p>
        <?php 
      require_once('recaptchalib.php'); 
      $publickey = "6Lce_ckSAAAAAAGhklRAs1KsXJ7-YxZAaoTldLyQ"; // you got this from the signup page 
      echo recaptcha_get_html($publickey);
      ?>
      <div id="recaptcha_widget" style="display:none">
       <div id="recaptcha_image"></div>
        <div class="recaptcha_only_if_incorrect_sol" style="color:red">Woorden komen niet overeen. Probeer opnieuw.</div>
        <span class="recaptcha_only_if_image">Typ de woorden in de afbeelding over *:</span>
        <span class="recaptcha_only_if_audio">Typ cijfers die u hoort:</span>
        <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /><div>
        <a href="javascript:Recaptcha.reload()">Ik kan de woorden niet lezen, vernieuw de afbeelding.</a></div>
      </div>
      <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6Lce_ckSAAAAAAGhklRAs1KsXJ7-YxZAaoTldLyQ">
      </script>
      <noscript>
      <iframe src="http://www.google.com/recaptcha/api/noscript?k=6Lce_ckSAAAAAAGhklRAs1KsXJ7-YxZAaoTldLyQ" height="300" width="500" frameborder="0">
      </iframe>
      <span id="sprytextarea2">
      <textarea name="recaptcha_challenge_field" cols="40" rows="3" id="recaptcha_challenge_field"></textarea>
      <em><strong>Kijk  aub. na op typfouten!</strong></em> <span class="textareaRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textareaMinCharsMsg">Dit veld is verplicht in te vullen!</span></span>
      <input type="hidden" name="recaptcha_response_field" value="manual_challenge">
      </noscript>
       </p>
      <p><em>Tip: Gebruik de link 'Vernieuwen' indien u de woorden niet kunt lezen.</em></p>
      <p> </p>
      <p>
        <label>
          <input name="registreren" type="submit" id="registreren" onFocus="Highlight" onBlur="Highlight" onClick="MM_effectHighlight('registreren', 1000, '#F0F0F0', '#FFCC33', '#FFCC00', true)" value="Registreren">
        </label>
      </p>
      <input type="hidden" name="MM_insert" value="registratie">
    </form>
    <div class="tooltipContent" id="sprytooltip1">&gt; Klik om het formulier te verifiëren en u  te registreren.</div>
    <p> </p>
    <p> </p>
    <script type="text/javascript">
    <!--
    var sprypassword2 = new Spry.Widget.ValidationPassword("sprypassword2", {validateOn:["blur"], minChars:6, maxChars:15, minAlphaChars:1, minNumbers:1, maxAlphaChars:14, maxNumbers:14, minUpperAlphaChars:0, maxUpperAlphaChars:14, minSpecialChars:0, maxSpecialChars:0});
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"], minChars:6, maxChars:50});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {isRequired:false, validateOn:["blur"], minChars:0, maxChars:100});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "integer", {validateOn:["blur"], isRequired:false, minValue:0, maxValue:9999999999, minChars:9, maxChars:10});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer", {validateOn:["blur"], minValue:0, maxValue:9999999999, minChars:9, maxChars:10});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "email", {isRequired:false, validateOn:["blur"], minChars:7, maxChars:50});
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "email", {validateOn:["blur"], minChars:7, maxChars:50});
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:50});
    var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:50});
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9", "none", {validateOn:["blur"], maxChars:50, minChars:1});
    var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10", "none", {validateOn:["blur"], minChars:1, maxChars:50});
    var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11", "integer", {validateOn:["blur"], minChars:2, maxChars:2, minValue:1, maxValue:31});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {validateOn:["blur"]});
    var sprytextfield12 = new Spry.Widget.ValidationTextField("sprytextfield12", "integer", {minChars:4, maxChars:4, validateOn:["blur"], minValue:1920, maxValue:2050});
    var sprytextfield13 = new Spry.Widget.ValidationTextField("sprytextfield13", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:100});
    var sprytextfield14 = new Spry.Widget.ValidationTextField("sprytextfield14", "none", {isRequired:false, validateOn:["blur"], minChars:0, maxChars:50});
    var sprytextfield15 = new Spry.Widget.ValidationTextField("sprytextfield15", "none", {minChars:0, maxChars:50, isRequired:false, validateOn:["blur"]});
    var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3", {validateOn:["blur"], isRequired:false});
    var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["blur"]});
    var sprytextfield16 = new Spry.Widget.ValidationTextField("sprytextfield16", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:50});
    var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {isRequired:false, validateOn:["blur"]});
    var sprytextfield17 = new Spry.Widget.ValidationTextField("sprytextfield17", "integer", {validateOn:["blur"], isRequired:false, minValue:0, maxValue:9999999999, maxChars:10, minChars:9});
    var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "paswoord", {validateOn:["blur"]});
    var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1", {validateOn:["blur"]});
    var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur"], minChars:1});
    var sprytooltip1 = new Spry.Widget.Tooltip("sprytooltip1", "#registreren", {useEffect:"fade", hideDelay:2});
    var sprytextarea2 = new Spry.Widget.ValidationTextarea("sprytextarea2", {validateOn:["blur"], minChars:3});
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($Contactenlijst);
    ?>
    
    

    In your PHP code, replace-

    }
    $editFormAction = $_SERVER['PHP_SELF'];

    on this subject.

    }

    ?>

    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "registreren")) {

    // add your captcha verification code here ....

    // captcha most likely ends with a header command to relocate failed attempts, so make sure you add

    // an exit() command after that header.  Otherwise, allow the successful captcha to fall into the following

    // block of code.

    }

    do not neglect this closing brace

    ?>

    $editFormAction = $_SERVER['PHP_SELF'];

  • How to load a form after checking the State of a record

    Dear friends,

    Application VB.net 2005

    Server: SQL Server 2005

    Table name: Tbl_Test

    FieldName: availability

    I use VB.net to develop a piece of software, the feature is just check one filed named "availability" and if the value is 'Yes' then load a form named frmStatus. I wrote the Code in FormLoad event but I would like to know how to write Code in a Module or in a class to load the form if the product of the value of the 'availability' = 'yes '.

    As it is an exe file regular to run every minute, I am facing a problem in which the cursor disappears for a while when the SQL statement, the execution to verify the status of availability in the SQL Server database.

    Please help me to solve the problems.

    Thank you.

    Hello

    The question you posted would be better suited to the MSDN Community. Check out the link and ask the question.

    http://social.msdn.Microsoft.com/forums/en-us/vbgeneral/threads

  • 'requires an entry' on the form detailed, checked but greyed - how to remove?

    Anyone know why I can not remove this field or remove the requirement so that it can be verified? All the other fields in the form give me the ability to check or uncheck the option 'require admission. "

    Screen Shot 2015-02-10 at 11.13.35.png

    Hello

    In fact, this area was "email field" you later renamed it to "Last Name"

    Email field is the only field in the form of Muse which is 'required enter' by default and you cannot delete that as well.

    In your case, I suggest you to rename "Last Name" with "email".

    Concerning

    Vivek

  • Is it possible to toggle different parts of a dynamic form by checking / unchecking a checkbox?

    I creates a form that has several sections with only a few sections of relevant to any particular customer. Essentially, I want to disable-disable/make invisible, the other sections that are not relevant for the customer based on the boxes that they check. Therefore the printed form displays only the relevant sections to the customer. I am very new to Adobe Designer any help with this would be appreciated. Thank you.

    Hello

    (1) add the check box for each section.

    (2) set the value WE, as the value of Y and OFF as N for each checkbox

    (3) add the script to the achievement of the following:

    If (chkbox.rawValue == "Y")

    {

    section. Presence = "visible";

    }

    on the other

    {

    section. Presence = "hidden";

    }

    If you wish, you can send me the form @ [email protected]

    Thank you

    VJ

  • Paging in table with dynamic action form

    Hi all
    I'm having a tabular presentation with 13 columns. I put paging Scheme as, "rank rank 1-15 16-30 in the list of selection (with pagination). And I activated the partial page refresh (because I have a skin and show the process of tabular presentation IE.) When the user presses the button add tabular form will display, otherwise it will be hidden.) For the form of tables, I will have a dynamic action for disabling some fields according to another value of the column. When I run the page in a table is hidden and when I hit Add button tabular presentation displays with disabled columns. But when I select the next in the form of tables button it displays the columns without turning off the column. How to disable, push the button even as previous and next.

    Thanks for the help!

    Hi Christine,

    Sorry for the late response has been far from forum for 3 days!
    See if it works now!

    I created a new action dynamic dis_num_on_next_prev that runs the following JavaScript Code:

    $('.myClass').each( function() {
       if( $(this).val() == 'Number' ){
         $('#f05_' + $(this).attr('id').substr(4)).attr('disabled',false);
         $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "white");
       }else{
         $('#f05_' + $(this).attr('id').substr(4)).attr( 'disabled','disabled');
         $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "yellow");
       }
    });
    

    The point of firing is event after refresh of the presentation table region.

    I hope that helps!
    Kind regards
    Kiran

  • Calculate the based form field check

    I'm sorry to have to beg for help for what should be a very simple operation but being new script and can't find what I'm looking for

    While searching on the forums, I would really appreciate help with this simple operation:

    I have a checkbox called 'PlanCheckYes-No' and two form fields, called "Subtotal" and "PlanReviewFee".  What I'm trying to accomplish is to have PlanReviewFee to generate a tax of 35% of 'subtotal' when 'PlanCheckYes-No' is checked.  zero if it is unchecked.  in common language the equation would be something like this:

    If 'PlanCheckYes-No' = TRUE, then 0.35 * "Subtotal", if not then 0

    Anyone able to give me a hand with this?

    Would be greatly appreciated.  Thank you.

    Steven Logan

    Oregon

    Put this in the custom calculation of PlanReviewFee script:

    If (this.getField("PlanCheckYes-No").isBoxChecked (0) == "1")

    {event.value = this.getField ("subtotal") .value * 0.35 ;}} else event.value = 0;

  • Form to check all the header checkbox

    Wow...

    My question is...

    I would like to add a checkbox "Check all" to the header of tabular form (not the default line selector). I tried a number of things, but can't make it work, as it adds the header:

    < input type = "checkbox" onclick = "$f_CheckAll (pThis)" >

    I prefer not to use external API or stuff like that. It should be simple and quick.

    Edited by: Voxie2 May 19, 2010 10:43

    Hello

    Try

    
    

    And make sure that you have not enabled for this sort column box

    BR, Jari

    Published by: jarola on May 19, 2010 12:38

  • form field check box control in word with report generation toolkit for Microsoft office

    Hi all

    Happy new year!

    In the word template, I insert the checkbox field. It has a bookmark name "Check1."

    Now, I try to checked or unchecked this field using the tool to generate report for Microsoft office and I couldn't. If someone now how to do? I'm using LabView 8.0

    Thanks in advance,

    Boris

    Hi all

    After I posted the question I found how to do it.

    I use the macro feature to control the box.

    Here's the diagram:

    Thank you

    Boris

  • Question about customizing the content form of Check-In Info page

    Is it possible to customize this page outside of a component? I know that the page is auto generated and I was wondering if it was possible to use as iDoc stuff on the rules page.

    as long you have defined to include it in a componet and using the right name to "Include personal use", there should not be any problems.
    what you could try is...
    set include "my_custom_include" as follows...
    <@dynamichtml my_custom_include@="">
    <$if not="" isuploadfieldscript$="">
    My custom label


    <$endif$>
    <@end@>

    Create a check-in and in the content server hcst file containing the following lines of code...


    <$include my_custom_include$="">

    Watch the web rendering of the above check-in and see if the html in your include code is displayed.

    If all good, you can add my_custom_include 'Use Custom include' to your domain in profile rules.

  • hide or show a control of whith sous-forme a check box

    Hello

    I don't know how to do this.

    I can't put it in "on click" because click can check or uncheck the box.

    Please help me

    THX

    Nath

    Hi Nath,

    I don't understand. The usual approach is to allow the user to check the check box, for example checked = subform is visible, unchecked = subform is hidden.

    Is that what you're after?

    If so, it should work in the click event:

    if (this.rawValue == 1)
    {
         subform.presence = "visible";
    }
    else
    
    {
         subform.presence = "hidden";
    }
    

    If you are after another behavior, can explain you more.

    Niall

    Ensure the dynamics

  • Form to a new page action

    I have trouble getting a new loading page after filling in a form.  When I run the < form > line with action = "inv_post.php" (as below), it works perfectly. "

    < do action = "inv_post.php" method = "post" > <!-beginning of the form--> "

    But when I try to call a function (goinvpost) with action = to validate the entries and then go to the new form, I get an error like the following page:

    My line of: < form action = "goinvpost" method = "post" > <!-beginning of the form-->

    results in a URL to the search for http://localhost/112faa_site/admin/goinvpost

    Object not found!

    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of this page on the error.

    If you think that it is a server error, please contact the webmaster.

    404 error

    localhost
    Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12

    Of course, he is looking for the goinvpost page and not the execution of the function.  I can't find the correct structure for the form action line.

    You can't call a function in the scope of forms?  The functions go in the page of the form to check the validation before sending to the processing .php page or they could go to the page of treatment .php itself.

  • I am trying to create a button print in my form, but the Action tab does not appear

    I am trying to create a button print in my form, but the Action tab does not appear

    I thought about it. When I tried to create a new form, I chose the "this form needs the signatures '. This option does not allow to add action buttons. If I create the form without checking the signature box, it works.

  • Forms: How can I change the action of a form?

    I want to change

    < form class= ' form-grp clearfix colelem ' id= "widgetu19126" method= "post" enctype= "multipart/form-data" action= "form-scripts/u19126.php" >


    TO

    < form class = "form-grp colelem clearfix" id = "widgetu19126" method = "post" enctype = "multipart/form-data" action= "... /gdform.asp' > '.

    Muse does not provide one out of the way box to do that, however, you may be able to do using the javascript/jquery code to manipulate the action attribute of the form. You can place the code in Muse by using Page Properties > metadata > HTML foroption or object > InsertHTML... option.

    Please note that this is a workflow that is not supported in Muse and may not always work as expected and you will rely on your HTML/CSS/JS skills to achieve this and solve all the problems.

    Thank you

    Vikas

  • How can I use check boxes in a form?

    I use DW3 - I know it's old, but I like it.

    I created a form thatâ generates an e-mail message (using a PHP script). On the form, I've used DW place 13 boxes with the name of a house next to him. DW assigned the names "checkbox2, checkbox3, etc. of these boxes, and I changed their"House of Mary","Home of Joe"and so on."

    When I use the form and check one of the boxes (selecting a home), the email generated leaves an empty space where the box informatmion (XXX House) should be.

    Here is an example of how the code in the html form:

    < p > < input type = "checkbox" name = "Barefoot dream" value = "checkbox" > barefoot dream < /p >

    Here's what the PHP script looks like:

    $CHECKBOX = $_POST ['checkbox'];

    And here's the code to put the information in the email:

    Property name: $CHECKBOX

    Of course, I don't know what I'm doing. Can someone help me?

    Thank you.

    Thanks for all these information; It is very useful. He made me understand that I should use an option instead of a checkbox button. And I'm not even blond!

Maybe you are looking for

  • Playlists do not sync for iPhone 6plus

    I barely noticed, so do not know if the update iOS triggered 9.3.4 it but if I add a new playlist on iTunes is not sync to my iPhone more. Did a few playlists on the PC test. They sync on my iPad but not on the iPhone - tried restarting the iPhone, b

  • Than return the behavior of Firefox to focus on a new tab empty? Not the same as opening a link in a new tab.

    In previous versions of Firefox, when I open a new empty tab by CTRL-T or by clicking on the 'more' button on the tab bar, Firefox would focus on the new tab. This is not the case with Firefox 11, but I liked this behavior and want to get it back. It

  • Skype is spamming my phone with sms

    HI, I have a contact who sent me a sms as 24 hours ago, and Skype is continuously spamming my phone with the same message. 43 counted up to now. You * beep * ing nuts?!!?! Is this a joke?

  • Re: Satellite Pro L300 - update after the BIOS, Windows will not start

    Hello I updated the BIOS on my laptop to the latest version and now it does not start in Windows. I can get to the BIOS menu. I tried to restore the default values and saved the day, but he's just a blue screen with writing on whichIi do not have the

  • Use of the filesystem in Windows Vista Business

    I had a neX61 in November last with Windows Vista Business and 120 GB disk space. I installed MS Office Standard 2007 and Visio, the disk of 2 months following its use grew much greated than the volume of data that I have placed on the system. I ran