<?php require_once '../Includes.php'; if (isset($_GET['cost'])) { $cost = $_GET['cost']; $cards = new Card(); if (is_numeric($cost)) { $cards->getNeutralCards($cost); } else { $cards->getHeroCards($cost); } }
<?php require_once '../../Includes.php'; if (isset($_POST['hero'])) { $cards = new Card(); $cards->getHeroCards($_POST['hero']); }