Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_SERVER['REQUEST_METHOD'] === 'POST') {
- $result = $tree->classify([
- "pogoda" => $_REQUEST['outlook'],
- "wietrznie" => $_REQUEST['windy'],
- "wilgotnosc" => $_REQUEST['humidity'],
- "temperatura" => $_REQUEST['temerature'],
- "noga" => $_REQUEST['leg'],
- ]);
- if($result == "true"){
- echo "Można grać";
- } else {
- echo "Nie można grać";
- }
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement