Thanks Bpat,
So, i am posting here only the contact.php file, which gets data form the contact.htm ( i am not posting this at it is obvious that this file uses action="contact.php" nad i get correct results)
Here is contact.php form
<body>
<?php
$EmailFrom = "martinbej@hotmail.com";
$EmailTo = "martinbej@yahoo.com";
$FamilyName=Trim(stripslashes($POST['FamilyName']));
$FirstNames = Trim(stripslashes($POST['FirstNames']));
$Dob = Trim(stripslashes($POST['Dob']));
$Nationality = Trim(stripslashes($POST['Nationality']));
$Institution1 = Trim(stripslashes($POST['Institution1']));
$Institution2 = Trim(stripslashes($POST['Institution2']));
$Institution3 = Trim(stripslashes($POST['Institution3']));
$Degree1 = Trim(stripslashes($POST['Degree1']));
$Degree2 = Trim(stripslashes($POST['Degree2']));
$Degree3 = Trim(stripslashes($POST['Degree3']));
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
?>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" colspan="2" class="style2"><?php $Body .= "Personal Data" ?></td>
</tr>
<tr>
<td height="50" colspan="2" class="style1"><strong><?php $Body .= "Family Name: "?></strong><br />
<?php $Body .= $FamilyName; echo " " ?><br /></td>
</tr>
<tr>
<td height="50" colspan="2" class="style1">
<?php $Body .= "First Names: "?></strong><br />
<?php $Body .= $FirstNames; echo " " ?>
</td>
</tr>
<tr>
<td width="165" height="50" class="style1"><strong><?php $Body .= "Date of Birth:" ?></strong><br />
<?php $Body .= $Dob; ?></td>
<td width="291" height="50" class="style2"><?php $Body .= "Nationality:" ?><br />
<?php $Body .= $Nationality; ?></td>
</tr>
<tr>
<td height="30" colspan="2" class="style2"><?php $Body .= "Education:" ?></td>
</tr>
<tr>
<td colspan="2" class="style1">
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="165"><?php $Body .= "Institution (Date from - Date to)" ?><br />
<?php $Body .= $Institution1; ?> </td>
<td width="285"><?php $Body .= "Degree(s0 or Diploma(s) obtained" ?><br />
<?php $Body .= $Degree1; ?></td>
</tr>
<tr>
<td><?php $Body .= $Institution2; ?></td>
<td><?php $Body .= $Degree2; ?></td>
</tr>
<tr>
<td><?php $Body .= $Institution3; ?></td>
<td><?php $Body .= $Degree3; ?></td>
</tr>
</table> </td>
</tr>
</table>
<?php
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>
</body>
I tried different table tachniques, but not a chance, all i get in my email is a sentence of the results from the contact.php! I all new at PHP so . .
thnx,
Martin