Example #1
0
      form input {
        float: right;
      }
    </style>
  </head>

  <body>

    <?php 
if ($_GET['postcode'] && $_GET['huisnummer']) {
    require 'classes/twente_milieu.php';
    try {
        $afvalkalender = new TwenteMilieu($_GET['postcode'], $_GET['huisnummer']);
        $url = 'http://' . $_SERVER["SERVER_NAME"] . dirname($_SERVER["REQUEST_URI"]);
        $url .= '/ical.php';
        $url .= '?postcode=' . $afvalkalender->safePostcode() . '&huisnummer=' . $afvalkalender->safeHuisnummer();
        ?>

        <div>
          <p>Voeg deze url toe aan je agenda:</p>
          <a href="<?php 
        echo $url;
        ?>
"><?php 
        echo $url;
        ?>
</a>
        </div>

      <?php 
    } catch (Exception $e) {