Menu
I’m stumped as to why strtolower() works sometimes in this instance and sometimes not.
[code=php]
if(isset($_POST[‘auto_submit’])){
$Spost = $_POST[‘start’];
$Fpost = $_POST[‘finish’];
$Spost = strtolower($Spost);
$Fpost = strtolower($Fpost);
$MonNames = array(“jan”, “feb”, “mar”, “apr”, “may”, “jun”, “jul”, “aug”, “sep”, “oct”, “nov”, “dec”);
$MonNums = array(“01”, “02”, “03”, “04”, “05”, “06”, “07”, “08”, “09”, “10”, “11”, “12”);
$Spost = str_replace($MonNames, $MonNums, “$Spost”);
$Fpost = str_replace($MonNames, $MonNums, “$Fpost”);