Just found out what the problem was -- don't use quotes inside the $lmonth and $cmonth vars when testing for existence.

I'm done.

Thanks for the help!