<table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr> 

                      <td> 

<?php require_once 'fprotect.php'; ?>

<?php 

$name = mysql_real_escape_string(stripslashes($_REQUEST['name']));

$country = mysql_real_escape_string(stripslashes($_REQUEST['country']));

$telephone = mysql_real_escape_string(stripslashes($_REQUEST['telephone']));

$email = mysql_real_escape_string(stripslashes($_REQUEST['email']));

$comments = mysql_real_escape_string(stripslashes($_REQUEST['comments']));



	if  (isset($_POST['submit'])) {

    $name=safe($name);

    $country=safe($country); 

    $telephone=safe($telephone); 

    $email=safe($email); 

    $comments=safe($comments); 

    $code1=safe($code1); 

	?>

	

   	<?php

if (preg_match("/a href/i", "$comments")) {

?> 

<?php } else { ?>



<?php if ($_REQUEST['data']==$_POST['code1']) { ?>



            <?php	

			$to="$sitemail, reservations@evripideshotel.gr";

			$from="$email";

			$reply="$email";

			$headers="MIME-Version: 1.0\r\n";

            $headers .="Content-type: text/plain; charset=utf-8\r\n";

			$headers .= "From: $email<$email>\r\n";

			$subject="New message from $domain";

			$message="New message from $domain



Contact form

			

Name: $name 

Country: $country

Tel: $telephone

E-mail: $email

Message: $comments



www.$domain Webserver 

";

mail ($to, $subject, $message, $headers);

?>

</td>

                    </tr>

                    <tr> 

                      <td>

                      <?php echo $fieldtext1 ?>

                      </td>

                    </tr>

                    <tr> 

                      <td><hr></td>

                    </tr>

                    <tr> 

                      <td> 

   <table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr valign="top">

    <td width="150">

<?php echo $fieldname ?><br>

<?php echo $fieldcountry ?><br>

<?php echo $fieldtel ?><br>

E-mail<br>

<?php echo $fieldmessage ?>

    </td>

    <td> 

<?php echo $name ?><br>

<?php echo $country ?><br>

<?php echo $telephone ?><br>

<?php echo $email ?><br>

<?php echo $comments ?>

</td>

  </tr>

</table></td>

                    </tr>

                    <tr> 

                      <td>&nbsp;</td>

                    </tr>

                    <tr> 

                      <td> 

                        <?php } else { ?>

                      </td>

                    </tr>

                    <tr> 

                      <td>

                   <a href="contact.php"><?php echo $fieldtext2 ?></a> 

                      </td>

                    </tr>

                    <tr> 

                      <td> 

                        <?php } ?>

                        <?php } ?>

                        <?php } else { ?>

                      </td>

                    </tr>

                    <tr> 

                    

                        <td> 

                        <table width="100%" border="0" cellspacing="0" cellpadding="0">



<tr><?php echo $parapona."<br/><br/>"; ?></tr>

  <tr valign="top">

    <td>

   <div style="margin-bottom:10px" class="titles">

   <?php echo $company1 ?></div> 

   

      <div style="margin-right:20px">

      <?php echo $address1 ?> <br>

      <?php echo $tel1 ?> <br>

      E-mail: <a href="mailto:<?php echo $sitemail?>?subject=<?php echo $firma ?>"><?php echo $sitemail?></a> 

      </div>

      </td>

    <td width="340">

<form name="forma" method="post" action="">	

                          <table width="100%" border="0" cellpadding="0" cellspacing="2">

                            <tr valign="top"> 

                              <td>

               <?php echo $fieldname ?>*

                              </td>

                              <td><input type="text" name="name" id="name" class="forms" size="30" maxlength="50"></td>

                            </tr>

                            <tr valign="top"> 

                              <td>

               <?php echo $fieldcountry ?>   

                              </td>

                              <td><input type="text" name="country" id="country" class="forms" size="30" maxlength="50"></td>

                            </tr>

                            <tr valign="top"> 

                              <td>

               <?php echo $fieldtel ?> 

                              </td>

                              <td> 

                                <input type="text" name="telephone" id="telephone" class="forms" size="30" maxlength="50">

                              </td>

                            </tr>

                            <tr valign="top">

                              <td>E-mail*</td>

                              <td><input type="text" name="email" id="email" class="forms" size="30" maxlength="60"></td>

                            </tr>

                            <tr valign="top">

                            <td>

               <?php echo $fieldmessage ?>                            

                            </td>

                              <td><textarea name="comments" id="comments" class="forms" rows="4" cols="30"></textarea></td>

                            </tr>

                            <tr valign="top">

                              <td>

 <?php echo $fieldcode ?>

 <?

global $data;

$data = mt_rand(100000,1000000);

?>

    <input type="hidden" name="code1" value="<?php echo $code1 ?>">

    <input type="hidden" name="data" value="<?php echo $data ?>">                             



                                  </td>

                              <td>

    <img src="<?php echo $sitepath ?>includes/dynamicimage.php?dt=<? global $data; echo base64_encode($data);?>" alt="">                                

    <input type="text" name="code1" id="code1" size="8" class="forms" maxlength="6"></td>

                            </tr>

                            <tr valign="top">

                              <td>

              * <?php echo $fieldrequired ?>

                              </td>

                              <td>

<input name="submit" type="submit" class="button" onClick="MM_validateForm('name','','R','email','','RisEmail');return document.MM_returnValue" value="<?php echo $button1 ?>">

                              

                              </td>

                            </tr>

</table>

						  </form>

    </td>

  </tr>

</table>

                      </td>

                    </tr>

                    <tr> 

                      <td> 

              <?php } ?>

                </td>

                    </tr>

                  </table>