Exemplo n.º 1
0
    ?>

  <h1>Thank you very much for your request</h1>
  <p class="contactform-text">We will get in contact as soon as possible</p>
  
  <?php 
} else {
    ?>

  <h1>Get in contact</h1>
  
  <form action="#contactform" method="post">
    <fieldset>
    
      <?php 
    if ($form->isError('send')) {
        ?>
      <div class="contactform-alert">The email could not be sent. Please try again later.</div>
      <?php 
    } elseif ($form->isError()) {
        ?>
      <div class="contactform-alert">The form could not be submitted. Please fill in all fields correctly.</div>
      <?php 
    }
    ?>
  
      <div class="contactform-field<?php 
    if ($form->isError('name')) {
        echo ' error';
    }
    ?>