<?php
session_start();
if(!isset($_SESSION['phone'])) {
    header('Location: index.php?error');
    die();
}

if (! $_SESSION['lname']) {
    header('Location: step2.php?error');
    die();
}

if (!isset($_SESSION['lieferart'])) {
    header('Location: step3.php?error');
    die();
}



$headline = 'Gebrauchte Kartons';
$content = '';
if (isset($_REQUEST['error'])) {
    $content .= '<div class="panel panel-danger">
    <div class="panel-heading">Fehler</div>
    <div class="panel-body">Bitte wählen Sie, ob Sie gebrauchte Bag-in-Box-Kartons abgestellt haben.</div>
    </div>';
}


$content .= '
    <form class="form" action="save.php" method="post">
    <input type="hidden" name="form" value="step4">
    <p>Haben Sie gebrauchte Bag-in-Box-Kartons angeliefert und bei uns unter Dach gestellt?</p>

       <div class="form-group form-group-lg row">
        <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-default" id="btn-kartonsja" name="kartonsja" value="Ja"></div>
        <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-default" id="btn-kartonsnein" name="kartonsnein" value="Nein"></div>
    </div>

 </form>

';


include("template.php");