Changeset 38 for Dev/trunk/surveycreation.php
- Timestamp:
- 07/22/11 17:13:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/surveycreation.php
r36 r38 3 3 4 4 $savedSurvey = null; 5 $timeStamp = null; 6 var_dump($_POST); 5 7 6 if (isset($_POST['timeStamp'])) 7 { 8 $timeStamp = $_POST['timeStamp']; 9 10 echo 'This is what gets sent:'; 11 var_dump($_POST); 12 echo '<br/><br/>'; 13 $surveyDBI = new SurveyDatabaseInterface(); 14 $surveyDBI->setSurveyInfo($_POST); 15 $info = $surveyDBI->getSurveyInfo(); 16 echo '<br/><br/>'; 17 echo 'This is what I get back:'; 18 var_dump($info); 19 20 $savedSurvey = Survey::getSurvey($info); 21 } 22 else { 23 $timeStamp = null; 8 /* LOAD SURVEY */ 9 if (isset($_POST['UID'])) { 10 $surveyID = $_POST['UID']; 11 $surveyDBI = new SurveyDatabaseInterface($surveyID); 12 $info = $surveyDBI->getSurveyInfo(); 13 14 $savedSurvey = Survey::getSurvey($info); 24 15 } 25 16 17 /* AUTOSAVE */ 18 else if (isset($_POST['timeStamp'])) { 19 $timeStamp = $_POST['timeStamp']; 20 21 echo 'This is what gets sent:'; 22 var_dump($_POST); 23 echo '<br/><br/>'; 24 $surveyDBI = new SurveyDatabaseInterface(); 25 $surveyDBI->setSurveyInfo($_POST); 26 $info = $surveyDBI->getSurveyInfo(); 27 echo '<br/><br/>'; 28 echo 'This is what I get back:'; 29 var_dump($info); 30 31 $savedSurvey = Survey::getSurvey($info); 32 } 26 33 ?> 27 34 … … 42 49 43 50 <div id="content"> 44 <?php 45 46 new SurveyCreationTool($savedSurvey, $timeStamp); 47 ?> 51 <?php 52 new SurveyCreationTool($savedSurvey, $timeStamp); 53 ?> 48 54 </div> 49 55 </div>
Note: See TracChangeset
for help on using the changeset viewer.