Just threw something together as practice. I'm wondering if you would code this differently. I know it's merely a few lines of code, but I'm sure there are people who can dissect it and code it more eloquently and efficiently than I have. I'm here to learn. Please pick it apart.
<p>This program will indicate the maximum number a numeric MySQL field can hold as determined by its length in bytes.</p>
Bytes: <input type="text" size="5" name="bytes" /><br />
<input type="submit" value="Calculate" />