How would I make a script that determines whether a number is less than 10?
So far i have this for my input page:
<html>
<body>
Enter number to see if its less than 10.
<form action="number.php" method="post">
<input type="text" name="number" />
</form>
</body>
</html>
And this for my number.php file:
<?php
$num="$_POST["number"]
if ( $num < 10){
echo "True";
} else }
echo "False";
}
?>
So far I get an error that says:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www/firecat111.freehostia.com/java/number.php on line 2
I'm very new and need some direction on how to complete this simple script.