Ignore:
Timestamp:
08/09/11 14:48:35 (14 years ago)
Author:
basvannuland
Message:

Application save load from db should work. styles not part of save yet.
More work on session save load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/applicationcreation.php

    r78 r80  
    11<?php
    22require 'classes/master.php';
     3
     4var_dump($_POST);
    35
    46if (is_null($_SESSION['username']))
     
    1618       
    1719    $applicationDBI = new ApplicationDatabaseInterface($id);
    18     $applicationDBI->setApplicationInfo($application);
     20    $applicationDBI->setApplicationInfo($_POST);
     21}
     22else if(isset($_POST['applicationTitle']))
     23{
     24    $title = $_POST['applicationTitle'];
     25    $description = $_POST['applicationDescription'];
     26    $application = new Application($title, $description);
     27       
     28    $applicationDBI = new ApplicationDatabaseInterface(null);
     29    $applicationDBI->setApplicationInfo($_POST);
    1930}
    2031
Note: See TracChangeset for help on using the changeset viewer.