prepare(" SELECT * FROM projects WHERE id = ? AND client_id = ? "); $stmt->execute([$project_id, $_SESSION['client_id']]); $project = $stmt->fetch(); if (!$project) { header('Location: projects-list.php'); exit; } // Define redirect statuses $redirect_statuses = [ 'complete' => ['name' => 'Complete', 'desc' => 'Survey completed successfully'], 'partial' => ['name' => 'Partial Complete', 'desc' => 'Survey partially completed'], 'earlyscreenout' => ['name' => 'Early Screen Out', 'desc' => 'Respondent screened out early'], 'latescreenout' => ['name' => 'Late Screen Out', 'desc' => 'Respondent screened out late'], 'timeout' => ['name' => 'Timed Out', 'desc' => 'Survey session timed out'], 'quotafull' => ['name' => 'Quota Full', 'desc' => 'Survey quota reached'] ]; // Base URL for redirects $base_url = 'https://relevantreflex.com/r/'; // Status colors $status_colors = [ 'Created' => '#0066cc', 'Targeted' => '#ffc107', 'Live' => '#28a745', 'On hold' => '#dc2626', 'Closed' => '#666' ]; $status_color = $status_colors[$project['status']] ?? '#666'; ?> Redirects - <?php echo htmlspecialchars($project['project_id']); ?>
Redirect URLs Document
📋 Project Information
Project Name
Project ID
Industry
Client Ref
Status
Deadline
eLOI
min
Sample
Client
🔗 Redirect URLs
$status): ?>
📌 Implementation Instructions
  1. Copy each redirect URL for the corresponding survey outcome
  2. Place URLs in your survey at appropriate exit points
  3. Map each URL to trigger when respondent reaches that status
  4. Test all redirects before going live
  5. Our system will automatically log each redirect