<?php session_start(); include '../modal/calcClass.php'; $screen = $_POST['screen']; if ($screen == "NULL") { $screen = 0; } $add = $_POST['add']; $calc = new Calc($screen, $add); if ($add == "is") { $antwoord = $calc->berekenen(); } elseif ($add == "del") { $antwoord = $calc->verwijder(); } else { $antwoord = $calc->toevoegen(); } $_SESSION['antwoord'] = $antwoord; header('Location: ../../../?function=calculator');