PHP: Making an age range
<p>If i would like to have an age range in my search form.</p>

<p>From: [input] to [input] years, so there you type e.g 18 to 26, how later can i use the fields and sort by a age range, in a query select.</p>

<pre><code>&lt;td&gt;
    &lt;input name="MinAge" maxlength="2" id="MinAge" style="width: 40px;" type="text"&gt;
&lt;/td&gt;
&lt;td style="width: 40px; text-align: center;"&gt;
    &lt;span id="MinAge_label"&gt;years&lt;/span&gt;&amp;nbsp; to 
&lt;/td&gt;
&lt;td&gt;
    &lt;input name="MaxAge" maxlength="2" id="MaxAge" style="width: 40px;" type="text"&gt;&amp;nbsp;&lt;span id="MaxAge_label"&gt;years&lt;/span&gt;
&lt;/td&gt;
</code></pre>
