stuck with php syntax errors
<p>i'm new to programming and php but i was trying to programm a simple login form and write it to the database using 3 layer architecture. </p>

<p>However, i'm keep getting stuck with the following syntax errors:    </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;

&lt;script src="validateBeheerderPasw.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="validateBeheerderPasw.css" rel="stylesheet" type="text/css"/&gt;


&lt;title&gt;BeheerderForm&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="/BeheerderController.php" id="form1" name="form1" method="POST"&gt;
  &lt;div align="center"&gt;
    &lt;table width="200" border="1"&gt;
      &lt;tr&gt;
        &lt;td&gt;naam&lt;/td&gt;
        &lt;td&gt;&lt;label for="TFnaam"&gt;&lt;/label&gt;
        &lt;input type="text" name="TFnaam" id="TFnaam" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;pasw&lt;/td&gt;
        &lt;td&gt;&lt;label for="TFpasw1"&gt;&lt;/label&gt;
        &lt;input type="password" name="TFpasw1" id="TFpasw1" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;herhaal pasw&lt;/td&gt;
        &lt;td&gt;&lt;span id="spryconfirm1"&gt;
          &lt;label for="confirmpasw"&gt;&lt;/label&gt;
          &lt;input type="password" name="confirmpasw" id="confirmpasw" /&gt;
        &lt;span class="confirmRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The values don't match.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;&lt;input type="submit" name="Bvoegbeheertoe" id="Bvoegbeheertoe" value="Submit" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  &lt;input type="hidden" name="MM_insert" value="form1" /&gt;
&lt;/form&gt;
&lt;script type="text/javascript"&gt;
var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "TFpasw1");
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;



&lt;?php include Beheerder.php ?&gt;
&lt;?php 
class BeheerderController {

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""){

if (PHP_VERSION &lt; 6) { 
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;  
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); 

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; 
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;

}

if ((isset($_POST["MM_insert"])) &amp;&amp; ($_POST["MM_insert"] == "form1")) { /// syntax error
$beheerder = new Beheerder(GetSQLValueString($_POST['TFnaam'], "text"),GetSQLValueString($_POST['confirmpasw'], "text"));
}

beheerder.setObj($beheerder);
}
?&gt;



&lt;?php

class Beheerder {

private $naam;
private $paswoord;
private $aB;

 function __construct($naam, $paswoord){
  $this-&gt;naam = $naam;
  $this-&gt;paswoord = $paswoord ;     
   }

function setObj ($aB){
  $this-&gt;ab = $aB;
}

$aBeheerderDA = new BeheerderDA (); /// syntax errors

aBeheerderDA.saveBeheerder($aB);

function getBeheerderNaam (){
return $naam;
}

function getBeheerderPaswoord(){
return $paswoord;
}
}
?&gt;


&lt;?php require_once('DBconnQualifield.php'); ?&gt;
&lt;?php

class BeheerderDA {

private $aB;
private $naam;
private $paswoord;

public function __construct() {
 }

private function saveBeheerder (Beheerder $aB){
$this-&gt;aB = $aB;
}  

$naam = aB.getBeheerderNaam (); /// syntax error

$paswoord = aB.getBeheerderPaswoord ();



  $insertSQL = sprintf("INSERT INTO beheerder (naam, paswoord) VALUES (%s, %s)",
                       $naam),
                       $paswoord);

  mysql_select_db($database_DBconnQualifield, $DBconnQualifield);
  $Result1 = mysql_query($insertSQL, $DBconnQualifield) or die(mysql_error());


mysql_select_db($database_DBconnQualifield, $DBconnQualifield);
$query_RSvoegbeheerdertoe = "SELECT * FROM beheerder";
$RSvoegbeheerdertoe = mysql_query($query_RSvoegbeheerdertoe, $DBconnQualifield) or die(mysql_error());
$row_RSvoegbeheerdertoe = mysql_fetch_assoc($RSvoegbeheerdertoe);
$totalRows_RSvoegbeheerdertoe = mysql_num_rows($RSvoegbeheerdertoe);

}
?&gt;
</code></pre>
