Ticket System in PHP - #5 Ticket Processing
Submitted by Yorkiebar on Thursday, October 9, 2014 - 11:56.
Introduction:
This tutorial is the final part in my ticket system via PHP tutorial. This part will be covering processing the ticket.Ticket Information:
We are already sending the email to the entered 'forgot password' reset form containing the ticket ID. This ticket ID links to the customer account through the column value of 'User'. It should also be noted that the email address only receives an email with the ticket number, and not a URL. So now we need a way for the user to enter their ticket ID.Ticket Form:
We already have a password reset form so now we are going to edit this to allow the user to enter a ticket. The current form we have is:
Let's add another input of type 'text' for the ticket...
- <input type='text' placeholder='Ticket' name='ticket' />
Processing:
The final step of this project is processing the ticket information. First we check to see if the user has submitted the above form...- <?php
- }
- ?>
- if ($_POST['password'] == $_POST['password2']) {
- }
- $uID = ticketValid();
- if ($uID >= 1) {
- }
- function ticketValid() {
- }
- }
- return 0;
- }
- if ($qq) {
- echo 'Updated password successfully!';
- }else{
- echo 'Failed.';
- }
Finished!
Add new comment
- 298 views