Exemple #1
0
      <input type="submit" name="submit" value="submit"></input>
    </form>

<?php 
if (isset($band)) {
    ?>
    <p>The last band entered was "<?php 
    echo $band->name;
    ?>
". It was given ID <?php 
    echo $band->id;
    ?>
 in the database.</p>
<?php 
} else {
    $band = Artist::read(1);
    ?>
    <p>The first band entered was "<?php 
    echo $band->name;
    ?>
". It was given ID <?php 
    echo $band->id;
    ?>
 in the database.</p>
<?php 
}
?>

  </body>

</html>