Project: krea apps ZIP File: testsurveys.kreahealthcare.com.zip Extracted on: 2026-02-05 11:18:01 Total Files: 12 ================================================================================ FILE: testsurveys.kreahealthcare.com/create_survey.php TYPE: PHP SIZE: 4.01 KB ------------------------------------------------------------ connect_error) { die("Connection failed: " . $db->connect_error); } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $title = $db->real_escape_string($_POST['title']); $welcome_content = $db->real_escape_string($_POST['welcome_content']); $unique_id = uniqid(); $db->query("INSERT INTO surveys (title, welcome_content, unique_id) VALUES ('$title', '$welcome_content', '$unique_id')"); $survey_id = $db->insert_id; foreach ($_POST['pages'] as $page_number => $page_data) { $question_text = $db->real_escape_string($page_data['question']); $db->query("INSERT INTO pages (survey_id, page_number, question_text) VALUES ($survey_id, $page_number, '$question_text')"); $page_id = $db->insert_id; foreach ($page_data['choices'] as $index => $choice_text) { $choice_text = $db->real_escape_string($choice_text); $redirect_url = $db->real_escape_string($page_data['redirects'][$index] ?? ''); $db->query("INSERT INTO choices (page_id, choice_text, redirect_url) VALUES ($page_id, '$choice_text', " . ($redirect_url ? "'$redirect_url'" : "NULL") . ")"); } } $_SESSION['message'] = "Survey created successfully!"; $_SESSION['message_type'] = "success"; header("Location: index.php"); exit; } ?>
| Title | Final Survey URL | Incomplete | Terminate | Overquota | Quality Terminate | Complete | Actions |
|---|---|---|---|---|---|---|---|
| No surveys available | |||||||
| Title | Final Survey URL | Incomplete | Terminate | Overquota | Quality Terminate | Complete | Actions |
|---|---|---|---|---|---|---|---|
| = htmlspecialchars($survey['title']) ?> | = $survey['incomplete_count'] ?> | = $survey['terminate_count'] ?> | = $survey['overquota_count'] ?> | = $survey['quality_terminate_count'] ?> | = $survey['complete_count'] ?> | View Edit Delete Export | |
| No surveys available | |||||||
" . print_r($existing_response, true) . "
= nl2br(htmlspecialchars($survey['welcome_content'])) ?>
Start Survey = 2 && $page <= 4 && $current_page): ?>= htmlspecialchars($current_page['question_text']) ?>
= htmlspecialchars($current_page['question_text']) ?>
Thank you for your participation.
| ID | Appended Value | Date | Action |
|---|---|---|---|
| = $response['id'] ?> | = htmlspecialchars($response['appended_value']) ?> | = $response['created_at'] ?> |
= nl2br(htmlspecialchars($survey['welcome_content'])) ?>
= htmlspecialchars($choice['choice_text']) ?>
Redirect: = htmlspecialchars($choice['redirect_url']) ?>
Finish Button: = $finish_button['choice_text'] ?>
Redirect: = htmlspecialchars($finish_button['redirect_url']) ?>