<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>First Steps Into PHP</title>
</head>

<body>
<form>
    X: <input type="text" name="num1" />
    Y: <input type="text" name="num2" />
    Z: <input type="text" name="num3" />
    <input type="submit" />
</form>

<?php
if(isset($_GET['num1']) && isset($_GET['num2']) && isset($_GET['num3'])) {
    $num1 = $_GET['num1'];
    $num2 = $_GET['num2'];
    $num3 = $_GET['num3'];

    if($num1 == 0 || $num2 == 0 || $num3==0) {
        echo "Positive";
    }
    else {
        $counter = 0;

        if($num1 < 0) {
            $counter++;
        }
        if($num2 < 0) {
            $counter++;
        }
        if($num3 < 0) {
            $counter++;
        }

        if($counter % 2 == 0) {
            echo "Positive";
        }
        else {
            echo "Negative";
        }
    }
}
?>
</body>
</html>
Create Product Of Three Numbers
Create Product Of Three Numbers
