<?php $classes = ["Pokemon", "EncounterSpace", "Inventory"]; foreach ($classes as $class) { require_once $class . ".class.php"; } $es = new EncounterSpace("Forest", "forest"); $es->save(); ?> <form action="add-pokemon.php" method="post"> <h3>Add Pokemon to 'The Forest'</h3> <input type="text" placeholder="add pokemon" name="pokemonname" required="required" autofocus> <input type="submit" value="Add Pokemon"> </form> <a href="forest.php">What Pokémon are in 'The Forest'?</a> <hr> <a href="walk.php?area=forest">Walk through 'The Forest'!</a> <hr> <a href="my-inventory.php">See your inventory</a>