Trying to get my external php code to display the message before but I am having a few issues. Could someone give me a hand or a couple of tips to progress?
I am trying to understand where I am going wrong but any help would definitely be appreciated. When I upload this to the filezilla server I get the following error.
Parse error: syntax error, unexpected 'echo' (T_ECHO) in / on line 13
HTML
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Enter your information in the form below</title>
</head>
<body>
<!-- Form1.html -->
<form action="Form1.php" method="post">
<fieldset><legend>Enter a number below </legend>
<b><p>Your number: </b> <input type="text" name="number" size="4" maxlength="4">
</p>
</fieldset>
<div align="center"><input type="submit" name="submit" value="Submit"></div>
</form>
</body>
</html>
PHP
<?php
if(isset($_POST['$number'])){
$number = $_POST['$number'];
if($number < 10){
echo "The number is smaller than 10";
} else ($number < 10 && $number > 100){
echo "The number is between 10 and 100";
} else ($number > 100){
echo "The number is larger than 100";
}
}
?>