Homelion, По аналогии как и у меня $type = isset($_GET['name']) && $_GET['name'] == 'plus' ? 'plus' : 'minus';