Ignore:
Timestamp:
07/25/11 17:45:22 (14 years ago)
Author:
fpvanagthoven
Message:

Saving now gives the link to participant survey.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/surveycreation.php

    r44 r50  
    44$savedSurvey = null;
    55$timeStamp = null;
    6 var_dump($_POST);
     6//var_dump($_POST);
    77
    88/* LOAD SURVEY */
     
    1111    $surveyDBI = new SurveyDatabaseInterface($surveyID);
    1212    $info = $surveyDBI->getSurveyInfo();
    13    
     13
    1414    $savedSurvey = Survey::getSurvey($info);
    1515}
    1616
    17 /* AUTOSAVE */
    18 else if (isset($_POST['timeStamp'])) {
     17/* AUTOSAVE */ else if (isset($_POST['timeStamp'])) {
    1918    $timeStamp = $_POST['timeStamp'];
    2019
    21     echo 'This is what gets sent:';
    22     var_dump($_POST);
    23     echo '<br/><br/>';
     20//    echo 'This is what gets sent:';
     21//    var_dump($_POST);
     22//    echo '<br/><br/>';
    2423    $surveyDBI = new SurveyDatabaseInterface($_POST['surveyID']);
    2524    $surveyDBI->setSurveyInfo($_POST);
    2625    $info = $surveyDBI->getSurveyInfo();
    27     echo '<br/><br/>';
    28     echo 'This is what I get back:';
    29     var_dump($info);
     26//    echo '<br/><br/>';
     27//    echo 'This is what I get back:';
     28//    var_dump($info);
    3029
    3130    $savedSurvey = Survey::getSurvey($info);
     
    4948
    5049            <div id="content">
    51                                 <?php
    52                                 new SurveyCreationTool($savedSurvey, $timeStamp);
    53                                 ?>
     50                <?php
     51                new SurveyCreationTool($savedSurvey, $timeStamp);
     52                ?>
    5453            </div>
    5554        </div>
Note: See TracChangeset for help on using the changeset viewer.