add the following code to the results page at line 1 to set a session variable for each form element from the search page:
<?php
@session_start();
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $k => $v) {
// store as session
$_SESSION[$k] = $v;
}
}
?>
the teacher element is named S_teacherName, you can use the following code on the update page to reference the session that is created:
<?php @session_start(); echo((isset($_SESSION["S_teacherName"]))?$_SESSION["S_teacherName"]:"") ?>