title: Using php if statement to validate that the input value is between 0 and 100
body: <p>I tried the following to make sure the input value is between <code>0</code> and <code>100</code> but it didn't work.</p>
  
  <pre><code>  if (($_POST['rate']) &gt;= '0' || =&lt;'100') {
        $rate = $_POST['rate']
    }
    esle {
        echo '&lt;p&gt;Please enter a value between 0 and 100&lt;/p&gt;';
    }
  </code></pre>