Advertisement
Guest User

contact.php

a guest
Jul 26th, 2011
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.64 KB | None | 0 0
  1. <?php include_once('validation.php')?>
  2. <?php include_once('headerform.php')?>
  3.  
  4.  
  5.     <form action="contact.php" method="post" class="cmxform">
  6.       <?php
  7.       if ( isset($aErrors) and count($aErrors) > 0 ) {
  8.         print '<ul class="errorlist">';
  9.         foreach ( $aErrors as $error ) {
  10.           print '<li>' . $error . '</li>';
  11.         }
  12.         print '</ul>';
  13.       }
  14.       ?>
  15.       <p>Vul het onderstaand formulier in de verplichte velden zijn met * gemarkeerd <em>*</em></p>
  16.       <fieldset>
  17.         <legend>Gegevens eigenaar</legend>
  18.         <ol>
  19.           <?php echo isset($aErrors['name']) ? '<li class="error">' : '<li>' ?>
  20.             <label for="name">Naam<em>*</em></label>
  21.             <input id="name" name="name" value="<?php echo isset($_POST['name']) ? htmlspecialchars($_POST['name']) : '' ?>" />
  22.           </li>
  23.           <?php echo isset($aErrors['lastname']) ? '<li class="error">' : '<li>' ?>
  24.             <label for="lastname">Achternaam<em>*</em></label>
  25.             <input id="lastname" name="lastname" value="<?php echo isset($_POST['lastname']) ? htmlspecialchars($_POST['lastname']) : '' ?>" />
  26.           </li>
  27.  
  28.           <?php echo isset($aErrors['email']) ? '<li class="error">' : '<li>' ?>
  29.             <label for="email">E-mail<em>*</em></label>
  30.             <input id="email" name="email" value="<?php echo isset($_POST['email']) ? htmlspecialchars($_POST['email']) : '' ?>" />
  31.           </li>
  32.           <?php echo isset($aErrors['address1']) ? '<li class="error">' : '<li>' ?>
  33.             <label for="address1">Address<em>*</em></label>
  34.             <input id="address1" name="address1" value="<?php echo isset($_POST['address1']) ? htmlspecialchars($_POST['address1']) : '' ?>" />
  35.           </li>
  36.           <?php echo isset($aErrors['towncity']) ? '<li class="error">' : '<li>' ?>
  37.             <label for="towncity">Plaats<em>*</em></label>
  38.             <input id="towncity" name="towncity" value="<?php echo isset($_POST['towncity']) ? htmlspecialchars($_POST['towncity']) : '' ?>" />
  39.           </li>
  40.           <?php echo isset($aErrors['postcode']) ? '<li class="error">' : '<li>' ?>
  41.             <label for="postcode">PostCode<em>*</em></label>
  42.             <input id="postcode" name="postcode" value="<?php echo isset($_POST['postcode']) ? htmlspecialchars($_POST['postcode']) : '' ?>" />
  43.           </li>
  44.           <?php echo isset($aErrors['phone']) ? '<li class="error">' : '<li>' ?>
  45.             <label for="phone">telefoon/gsm<em>*</em></label>
  46.             <input id="phone" name="phone" value="<?php echo isset($_POST['phone']) ? htmlspecialchars($_POST['phone']) : '' ?>" />
  47.           </li>
  48.        </ol>
  49.       </fieldset>
  50.     <fieldset>
  51.     <legend>Gegevens van de hond</legend>
  52.       <ol>
  53.         <?php echo isset($aErrors['dogname']) ? '<li class="error">' : '<li>' ?>
  54.         <label for="dogname">Naam<em>*</em></label>
  55.         <input id="dogname" name="dogname" value="<?php echo isset($_POST['dogname']) ? htmlspecialchars($_POST['dogname']) : '' ?>" />
  56.         </li>
  57.         <?php echo isset($aErrors['chip']) ? '<li class="error">' : '<li>' ?>
  58.         <label for="chip">Chipnr/tatouage<em>*</em></label>
  59.         <input id="chip" name="chip" value="<?php echo isset($_POST['chip']) ? htmlspecialchars($_POST['chip']) : '' ?>" />
  60.         </li>
  61.         <?php echo isset($aErrors['ras']) ? '<li class="error">' : '<li>' ?>
  62.         <label for="ras">Ras<em>*</em></label>
  63.         <input id="ras" name="ras" value="<?php echo isset($_POST['ras']) ? htmlspecialchars($_POST['ras']) : '' ?>" />
  64.         </li>
  65.         <?php echo isset($aErrors['weight']) ? '<li class="error">' : '<li>' ?>
  66.         <label for="weight">gewicht<em>*</em></label>
  67.         <input id="weight" name="weight" value="<?php echo isset($_POST['weight']) ? htmlspecialchars($_POST['weight']) : '' ?>" />
  68.         </li>
  69.         <?php echo isset($aErrors['gender']) ? '<li class="error">' : '<li>' ?>
  70.             <label for="gender" >geslacht<em>*</em></label>
  71.             <input type="radio" name="gender" id="genderM" value="Reu"<?php echo ( isset($_POST['gender']) and $_POST['gender'] == 'Reu' ) ? ' checked="checked"' : '' ?> /> Reu
  72.             <input type="radio" name="gender" id="genderF" value="Teef"<?php echo ( isset($_POST['gender']) and $_POST['gender'] == 'Teef' ) ? ' checked="checked"' : '' ?> /> Teefje
  73.             </li>
  74.             <?php echo isset($aErrors['dinner']) ? '<li class="error">' : '<li>' ?>
  75.             <label for="dinner" >eet 1x/2x per dag<em>*</em></label>
  76.             <input type="radio" name="dinner" id="dinner1" value="1x"<?php echo ( isset($_POST['dinner']) and $_POST['dinner'] == '1x' ) ? ' checked="checked"' : '' ?> /> 1x
  77.             <input type="radio" name="dinner" id="dinner2" value="2x"<?php echo ( isset($_POST['dinner']) and $_POST['dinner'] == '2x' ) ? ' checked="checked"' : '' ?> /> 2x
  78.             </li>
  79.             <?php echo isset($aErrors['socialdog']) ? '<li class="error">' : '<li>' ?>
  80.             <label for="socialdog" >Sociaal met honden<em>*</em></label>
  81.             <input type="radio" name="socialdog" id="socialdogY" value="j"<?php echo ( isset($_POST['socialdog']) and $_POST['socialdog'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  82.             <input type="radio" name="socialdog" id="socialdogN" value="n"<?php echo ( isset($_POST['socialdog']) and $_POST['socialdog'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  83.             </li>
  84.             <?php echo isset($aErrors['socialhuman']) ? '<li class="error">' : '<li>' ?>
  85.             <label for="socialhuman" >Sociaal met mensen<em>*</em></label>
  86.             <input type="radio" name="socialhuman" id="socialhumanY" value="j"<?php echo ( isset($_POST['socialhuman']) and $_POST['socialhuman'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  87.             <input type="radio" name="socialhuman" id="socialhumanN" value="n"<?php echo ( isset($_POST['socialhuman']) and $_POST['socialhuman'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  88.             </li>
  89.             <?php echo isset($aErrors['flea']) ? '<li class="error">' : '<li>' ?>
  90.             <label for="flea" >Ontvlooid<em>*</em></label>
  91.             <input type="radio" name="flea" id="fleaY" value="j"<?php echo ( isset($_POST['flea']) and $_POST['flea'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  92.             <input type="radio" name="flea" id="fleaN" value="n"<?php echo ( isset($_POST['flea']) and $_POST['flea'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  93.             </li>
  94.     </fieldset>
  95.     <fieldset>
  96.     <legend>Vaccinatie, is de hond gevaccineerd tegen</legend>
  97.             <?php echo isset($aErrors['carre']) ? '<li class="error">' : '<li>' ?>
  98.             <label for="carre" >carre<em>*</em></label>
  99.             <input type="radio" name="carre" id="carreY" value="j"<?php echo ( isset($_POST['carre']) and $_POST['carre'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  100.             <input type="radio" name="carre" id="carreN" value="n"<?php echo ( isset($_POST['carre']) and $_POST['carre'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  101.             </li>
  102.             <?php echo isset($aErrors['parvovirose']) ? '<li class="error">' : '<li>' ?>
  103.             <label for="parvovirose" >Parvovirose<em>*</em></label>
  104.             <input type="radio" name="parvovirose" id="parvoviroseY" value="j"<?php echo ( isset($_POST['parvovirose']) and $_POST['parvovirose'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  105.             <input type="radio" name="parvovirose" id="parvoviroseN" value="n"<?php echo ( isset($_POST['parvovirose']) and $_POST['parvovirose'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  106.             </li>
  107.             <?php echo isset($aErrors['hepatitis']) ? '<li class="error">' : '<li>' ?>
  108.             <label for="hepatitis" >Hepatitis contagiosa canis<em>*</em></label>
  109.             <input type="radio" name="hepatitis" id="hepatitisY" value="j"<?php echo ( isset($_POST['hepatitis']) and $_POST['hepatitis'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  110.             <input type="radio" name="hepatitis" id="hepatitisN" value="n"<?php echo ( isset($_POST['hepatitis']) and $_POST['hepatitis'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  111.             </li>
  112.             <?php echo isset($aErrors['kennelhoest']) ? '<li class="error">' : '<li>' ?>
  113.             <label for="kennelhoest" >Kennelhoest<em>*</em></label>
  114.             <input type="radio" name="kennelhoest" id="kennelhoestY" value="j"<?php echo ( isset($_POST['kennelhoest']) and $_POST['kennelhoest'] == 'j' ) ? ' checked="checked"' : '' ?> /> Ja
  115.             <input type="radio" name="kennelhoest" id="kennelhoestN" value="n"<?php echo ( isset($_POST['kennelhoest']) and $_POST['kennelhoest'] == 'n' ) ? ' checked="checked"' : '' ?> /> Nee
  116.             </li>
  117.     </fieldset>
  118.         <input type="submit" value="Verstuur" />
  119.    </form>
  120. <?php include_once('footer.php')?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement