Morning all,
I downloaded osTicket for our site a few weeks back and have manage to quite successfully customise it for our needs. However, there are two items outstanding, that i'm having problems doing.
The first is that our system uses a combination of cookie and session-based data for holding secure information on a user that is logged in. When a user is logged in goes to create a new ticket, we want the name, email address fields to be auto filled and the email address field to be disabled to prevent it being editted. I'm struggling to find out how to pre-fill the fields. The name is store in the session vars, but the email address will need to be a call to our members database. Any suggestions?
Secondly, if the open.php file is loaded in the browser with a specific variable in the $_GET vars - in this case Reference - AND the user is logged in. We want the system to cross-check with our database to confirm that the reference number given does belong to that user, pre-fill a new field with the reference number (which only shows if the reference var is present) and only give the user the pre-selected Help Topic of Reference Enquiry. If the reference number did not belong to the currently logged in user, it should redirect to invalidreference.php. This im struggling with big time!
Can anyone give any suggestions or advice on how to do these two? I'm fairly knowledgable with PHP so can handle the database calls and information retrieval, just i'm struggling to work out how to pre-fill and set up the fields.
Ta
fh47331