Am I sure the month will always be two digits? Yes, I'm 100% positive and from the snippet below, it'll also relieve your wonders on why I'm comparing to a number.

With all that beside us now, can someone help me setup the max day checker?

print <<"ALL"; Day: <SELECT NAME="day" SIZE="1"> <OPTION SELECTED> $editday <OPTION> 01 <OPTION> 02 <OPTION> 03 <OPTION> 04 <OPTION> 05 <OPTION> 06 <OPTION> 07 <OPTION> 08 <OPTION> 09 <OPTION> 10 <OPTION> 11 <OPTION> 12 <OPTION> 13 <OPTION> 14 <OPTION> 15 <OPTION> 16 <OPTION> 17 <OPTION> 18 <OPTION> 19 <OPTION> 20 <OPTION> 21 <OPTION> 22 <OPTION> 23 <OPTION> 24 <OPTION> 25 <OPTION> 26 <OPTION> 27 <OPTION> 28 <OPTION> 29 <OPTION> 30 <OPTION> 31 </SELECT> Month: <SELECT NAME="month" SIZE="1"> <OPTION SELECTED> $editmonth <OPTION> 01 <OPTION> 02 <OPTION> 03 <OPTION> 04 <OPTION> 05 <OPTION> 06 <OPTION> 07 <OPTION> 08 <OPTION> 09 <OPTION> 10 <OPTION> 11 <OPTION> 12 </select> Year: <SELECT NAME="year" SIZE="1"> <OPTION SELECTED> $edityear <OPTION>04 <OPTION> 05 <OPTION> 06 </select> </td></tr> <tr><td>Course:</td><td> <SELECT NAME="course" SIZE="1"> <OPTION SELECTED> $course <OPTION>GDP Mod 1 <OPTION>GDP Mod 2 <OPTION>GDP Mod 3 <OPTION>GDP Mod 4 <OPTION> <OPTION>HYG Mod 1 <OPTION>HYG Mod 2 <OPTION>HYG Mod 3 <OPTION> <OPTION>Carers Sp. Needs <OPTION>VDP <OPTION>CDP Sp Needs <OPTION> <OPTION>TBC <OPTION>Lecture Day <OPTION>Other </SELECT>

In reply to Re: (2) Roll your own date validation by coldfingertips
in thread Roll your own date validation by coldfingertips

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.