session_start();
require_once('../Connections/connection.php');
include_once('../include/header_functions.php');
show_header("Edit recipients for $session_client_name - $session_job_name");
show_job_header();
// if we have a person_id when we get to this page, that means the user has chosen to edit a person record
if ($person_id){
$edit = 1;
// so we need to retrieve that record
$sql = "SELECT first_name, last_name, email_address FROM tbl_persons
WHERE job_id = '$session_job_id'
AND person_id = '$person_id'";
$result = mysql_query($sql, $connection) or die("could not select person record
" . mysql_error());
$row = mysql_fetch_array($result);
$first_name = $row['first_name'];
$last_name = $row['last_name'];
$email_address = $row['email_address'];
}
if ($edit){
echo "