Beispiel #1
0
<?php

include 'model.php';
include 'connect.php';
session_start();
$crust = new Crust();
$personalinfo = new PersonalInfo();
$order = new Order();
$size = new Size();
$province = new Province();
$numberoftopping = count($_SESSION['topping']);
$province->setProvinceId($_SESSION['provinceid']);
$crust->setCrustId($_SESSION['crust']);
$size->setSizeId($_SESSION['size']);
$userid = rand();
$personalinfo->setUserId($userid);
$personalinfo->setFirstName($_SESSION['fname']);
$personalinfo->setLastName($_SESSION['lname']);
$personalinfo->setAddress($_SESSION['address']);
$personalinfo->setCity($_SESSION['city']);
$personalinfo->setProvinceId($_SESSION['provinceid']);
$personalinfo->setPostalCode($_SESSION['pcode']);
$personalinfo->setTelephone($_SESSION['telephone']);
$personalinfo->setEmailId($_SESSION['email']);
$uid = $personalinfo->getUserId();
$fname = $personalinfo->getFirstName();
$lname = $personalinfo->getLastName();
$address = $personalinfo->getAddress();
$city = $personalinfo->getCity();
$provid = $personalinfo->getProvinceId();
$postalcode = $personalinfo->getPostalCode();