1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php if (isset($_POST['decklist'])) { $_ENV['DECKLIST'] = $_POST['decklist']; include __DIR__ . '/mtg-pdf.php'; exit; } ?> <form action="" method="POST"> <textarea name="decklist"></textarea> <button>Submit</button> </form>