
    <head>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/main.css">
        <link rel="stylesheet" type="text/css" href="css/style.css">
        
        <link rel="shortcut_icon" type="image/x-icon" href="images/Icons/favicon/favicon.ico">
        
      <link rel="stylesheet" type="text/css" href="css/edit_main.css">
      
     
    <?php
    
        $name_err=false;
        $message_err=false;
        $emailFrom_err=false;
                
        if(isset($_POST["sendthis"])){
            if($_POST["name"]=="") $name_err=true;
            if($_POST["emailFrom"]=="") $emailFrom_err=true;
            if($_POST["message"]=="") $message_err=true;
            
            if($name_err==false && $emailFrom_err==false && $message_err==false){ //wenn keines true
                $to      = 'al@verag.ag';
                $subject = 'Kontaktaufnahme von: '.$_POST["name"];
                $message = $_POST["message"];
                $headers = 'From: '.$_POST["emailFrom"]."\r\n" .
                    'Reply-To: al@verag.ag' . "\r\n" .
                    'X-Mailer: PHP/' . phpversion();ö

                mail($to, $subject, $message, $headers);
            }
        }
    ?>
    
    </head>
    
    
    
   <body style="width:500px;padding:0px;margin:0px;overflow-x: hidden;" >
      <div style="width:100%;height:25px;background-color: #003680;font-size:16px;color:white;padding:10px;" ><b>Feedback</b></div>
         <form action="sendFeedback.php" method="post" style="margin: 10px;">
           
          
         Sie können uns hier eine Nachricht schreiben, ein Mitarbeiter wird sich umgehend darum kümmern:
           <br/>  <br/>
           <table  style="width:100%">
               <tr>
                   <td>Name / Firma:<br/><input type="text" name="name" value="<?php if(isset($_POST["name"])) echo $_POST["name"]; ?>" style="width:100%">
                   <?php if($name_err) echo "<br/><span style='color:red;font-size:9px;'>Name eingeben!<span>"; ?></td>
               </tr>
               <tr>
                   <td>E-Mail:<br/><input type="text" name="emailFrom" value="<?php if(isset($_POST["emailFrom"])) echo $_POST["emailFrom"]; ?>" style="width:100%">
                   <?php if($emailFrom_err) echo "<br/><span style='color:red;font-size:9px;'>E-Mail eingeben!<span>"; ?></td>
               </tr>
            
               <tr>
                   <td>Nachricht:<br/><textarea name="message" style="width:100%" rows="10"><?php if(isset($_POST["message"])) echo $_POST["message"]; ?></textarea>
                       <?php if($message_err) echo "<br/><span style='color:red;font-size:9px;'>Nachricht eingeben!<span>"; ?></td>
               </tr>
                <tr>                  
                    <td><input type="submit" name="sendthis" value="Nachricht senden"></td>
                </tr>
            
            </table>
        </form>

</body>