Ok What i did was create a session cookie for the users current queue . it get overwritten every time a person switches to another queue.i.e. closed,open,overdue,my tickets..Then i grabbed that piece of information and appended it to the post url of the reply button,post note,assign,department transfer etc..so the ur looks like this<form id="reply" action="tickets.php?status=closed&id=55#reply"let me know if this works for you