SHARE
TWEET

Untitled

a guest Feb 14th, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ($_SERVER['REQUEST_METHOD'] === 'POST') {
  2.     $result = $tree->classify([
  3.         "pogoda" => $_REQUEST['outlook'],
  4.         "wietrznie" => $_REQUEST['windy'],
  5.         "wilgotnosc" => $_REQUEST['humidity'],
  6.         "temperatura" => $_REQUEST['temerature'],
  7.         "noga" => $_REQUEST['leg'],
  8.     ]);
  9.     if($result == "true"){
  10.         echo "Można grać";
  11.     } else {
  12.         echo "Nie można grać";
  13.     }        
  14.     exit;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top