survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

success.php (463B)


      1 <?php
      2 include_once 'res/session.php';
      3 
      4 $sid = $_SESSION['sid'];
      5 $code = $_SESSION['code'];
      6 $title = $_SESSION['title'];
      7 $qr = 'res/qrgen.php?sid=' . $sid;
      8 ?>
      9 <h1> Success </h1>
     10 <?php 
     11 echo $title, " has been created.";
     12 echo "Use access code ", $code;
     13 echo "<a href='$qr'> QR Code </a>";
     14 unset($_SESSION['sid']);
     15 unset($_SESSION['code']);
     16 unset($_SESSION['title']);
     17 unset($_SESSION['description']);
     18 unset($_SESSION['questions']);
     19 ?>
     20 <a href="index.php"> Home </a>