$Height = $_POST["height"];
$Weight = $_POST["weight"];
$DOB = $_POST["DOB"];
$Gender = $_POST["gender"];
$SSN = $_POST["SSN"];
$MedicalConditions = $_POST["MedicalConditions"];
if ($Username == "" || $Password == "" || $FirstName == "" || $MiddleName == "" || $LastName == "" || $Address == "" || $PhoneNumber == "" || $Height == "" || $Weight == "" || $DOB == "" || $Gender == "" || $SSN == "" || $MedicalConditions == "") {
    header("Location: add_patient.php?error=102");
}
$u = new UserDAO();
$u->Username = $_SESSION["username"];
$u->Find();
$ClinicianId = $u->idNumber;
$p = new PatientDAO();
$p->Username = $Username;
if ($p->Find()) {
    header("Location: add_patient.php?error=103");
}
$p->Password = $Password;
$p->FirstName = $FirstName;
$p->MiddleName = $MiddleName;
$p->LastName = $LastName;
$p->Address = $Address;
$p->PhoneNumber = $PhoneNumber;
$p->UserClass = $UserClass;
$p->Height = $Height;
$p->Weight = $Weight;
$p->DOB = $DOB;
$p->Gender = $Gender;
$p->SSN = $SSN;
$p->MedicalConditions = $MedicalConditions;
    		</div>
        </div>
        
        <div id="columnwrapper">
 	   
 		  	<div id="breadcrumbs">
			
  			</div>
  
   			<div id="content_container">
   			<h2 class="welcome">Edit Task</h2>
   			<div id="content1">
   			<?php 
$p = new PatientDAO();
$p->Username = $_GET["patient"];
$p->Find();
if ($_POST["dailyTaskClass"] == "WalkingTask") {
    ?>
   			<h3 class="welcome">Walking Task</h3>
   			<form name="add_task" action="add_task_script.php?patient=<?php 
    echo $_GET["patient"];
    ?>
" method="post">
   				Patient: <?php 
    echo $p->FirstName . " " . $p->MiddleName . " " . $p->LastName;
    ?>
<br />
   				Task: <input type="text" readonly name="class" value="<?php 
    echo $_POST["dailyTaskClass"];
    ?>
"/><br />