Maybe a little more data would help.
Here is what I'm putting on the "dept" screen (i.e. in editticket.inc.php):
<tr><td>Assigned To (NOT YET WORKING):</td>
<td>
<form action="tickets.php?id=<?=$id?>#assign" name="notes" method="post" enctype="multipart/form-data">
<input type="hidden" name="ticket_id" value="<?=$id?>">
<input type="hidden" name="a" value="update">
<select id="staffId" name="staffId">
<option value="0" selected="selected">-Select Staff Member.-</option>
<?
//TODO: make sure the user's group is also active....DO a join.
$sql=' SELECT staff_id,CONCAT_WS(", ",lastname,firstname) as name FROM '.STAFF_TABLE.
' WHERE isactive=1 AND onvacation=0 ';
if($ticket->isAssigned())
$sql.=' AND staff_id!='.db_input($ticket->getStaffId());
$depts= db_query($sql.' ORDER BY lastname,firstname ');
while (list($staffId,$staffName) = db_fetch_row($depts)){
$selected = ($info==$staffId)?'selected':''; ?>
<option value="<?=$staffId?>"<?=$selected?>><?=$staffName?></option>
<?
}?>
</select><font class='error'> *<?=$errors?></font></td></tr>
</td></tr>
Here is what is in the ticket.php file under 'update'
case 'update':
$page='editticket.inc.php';
if(!$ticket || !$thisuser->canEditTickets())
$errors='Perm. Denied. You are not allowed to edit tickets';
elseif($ticket->update($_POST,$errors)){
$msg='Ticket updated successfully';
$page='viewticket.inc.php';
}elseif(!$errors) {
$errors='Error(s) occured! Try again.';
}
break;
I've tried copy/pasteing what was under 'assign' in tickets.php, but it error'd out. (unsuprising).
I realize that in editticket.inc.php, everything is shooting back to 'update' in tickets.php which is the posting it to the database (upon pressing "update ticket") but I'm not able to add "assigned staff" to that screen and have both it past and the other data on the page post to the database.
Any help would be greatly appreciated!