$ClinicianId = $u->idNumber; $p = new PatientDAO(); $p->Username = $Username; $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; $p->ClinicianId = $ClinicianId; $p->Update(); $location = "Location: patient_display.php?patient=" . $p->Username; header($location); /* $worked = $p->Insert(); if ($worked) { header("Location: homepage.php?success=101"); } else { header("Location: add_patient.php?error=101"); } */