Checking that the get value is an integer (whole number)
<p>I'm currently building a room booking system and was wondering how to check if the user has correctly entered an integer i.e. 0,1,2,3,4,5 on the form and not anything else (i.e. left it blank, entered decimal number or alphabet).</p>

<pre><code>$capacity = $_GET["capacity"];
</code></pre>

<p>Thanks in advance!</p>
