if ($this->side_a == $this->side_b && $this->side_a == $this->side_c) { return "Your Triangle is Equilateral"; } elseif ($this->side_a == $this->side_b || $this->side_a == $this->side_c || $this->side_c == $this->side_b) { return "Your Triangle is Isosceles"; } else { return "Your Triangle is Scalene"; } } } $daTriangle = new Triangle($_GET['side1'], $_GET['side2'], $_GET['side3']); ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> <title>TRIANGLEzzzzz</title> </head> <body> <div class="container"> <h1>Da Triangle</h1> <?php if ($daTriangle->isNotTriangle()) { echo "<h1>That Aint No Triangle</h1>"; } else { echo "<h1>" . $daTriangle->whatTriangle() . "</h1>"; } ?> </div> </body> </html>