prepare(" SELECT id, project_id, project_name, client_id FROM projects WHERE project_id = ? AND client_id = ? "); $stmt->execute([$project_id, $client_id]); $project = $stmt->fetch(); if (!$project) { $_SESSION['error'] = "Project not found or access denied"; header('Location: projects-list.php'); exit; } // Get batches for this project $stmt = $pdo->prepare(" SELECT batch_number, total_urls, sent_count, upload_type, created_at FROM survey_url_batches WHERE project_id = ? ORDER BY batch_number DESC "); $stmt->execute([$project_id]); $batches = $stmt->fetchAll(); } catch (Exception $e) { error_log("Manage Survey URLs error: " . $e->getMessage()); $error = "Error loading project: " . $e->getMessage(); } $page_title = "Manage Survey URLs"; include 'client-portal-header.php'; ?>

— Manage Survey URLs

← Back to Project
Projects / / Survey URLs

Add Survey URLs

Single URL Template

Upload one URL template and generate multiple unique URLs by appending identifiers.

Example: https://survey.com/s?uid={ID}

Multiple URLs (Bulk)

Upload up to 5,000 pre-generated URLs with unique identifiers already embedded.

Example: One URL per line
https://survey.com/s?uid=ABC123
https://survey.com/s?uid=XYZ789
Use {ID} as placeholder where unique identifier should be inserted.
Generate between 1 and 5,000 URLs (typically matches your sample size)
Choose how unique identifiers should be generated
Cancel

Existing URL Batches

📊

No URL batches created yet. Use the form above to upload your first batch.

Batch #

URLs
Sent
Created: