query($sql); if ($result->num_rows == 0) { $error = "Invalid or expired ticket link. Please contact support if you need assistance."; } else { $ticket = $result->fetch_assoc(); // Handle form submission if ($_SERVER['REQUEST_METHOD'] === 'POST') { $user_reply = clean_input($_POST['user_reply']); if (empty($user_reply)) { $error = "Please enter your response"; } else { // Append user reply to the message $updated_message = $ticket['message'] . "\n\n--- User Response ---\n" . $user_reply; $updated_message = clean_input($updated_message); // Update ticket with user's response $update_sql = "UPDATE contact_messages SET message = '$updated_message', ticket_status = 'new' WHERE id = $ticket_id"; if ($conn->query($update_sql)) { $success = "Your response has been submitted successfully! Our support team will review and respond to your follow-up question."; // Refresh ticket data $result = $conn->query($sql); $ticket = $result->fetch_assoc(); } else { $error = "Failed to submit response. Please try again."; } } } } } $page_title = 'Respond to Ticket'; ?> <?php echo $page_title; ?> - Paid Survey Hub India
Paid Survey Hub India
⚠️

Access Error

Submit New Ticket Go to Homepage

Response Submitted!

📧 What happens next:

  • Our support team will review your follow-up question
  • We will respond to your email within 24 hours
  • You can respond again using the link in our next email
Go to Homepage

Respond to Support Ticket

Ticket ID: #

Submitted:

'background: #ffc107; color: #000;', 'in_progress' => 'background: #17a2b8; color: #fff;', 'resolved' => 'background: #28a745; color: #fff;', 'closed' => 'background: #6c757d; color: #fff;' ]; $status_text = ucfirst(str_replace('_', ' ', $ticket['ticket_status'])); ?>

Support Team Response:

Replied on:

Your Original Message:

💬 Have a follow-up question?

Type your follow-up message below and our support team will respond to your email.

We will send our response to:
📌 Note: After submitting your follow-up, our support team will review and respond to your email within 24 hours. You will receive another email with our response and a link to continue the conversation if needed.

© Paid Survey Hub India. All rights reserved.