I created a website and one input is for date using <input type="date" name="rcdate" />
. It is very handy but it only works for Chrome. The output when I process it using PHP is YYYY-MM-DD format.
The problem is when someone uses an outdated browser (Note: Firefox, IE), the UI is not working (Note: displays a textbox) and the user is prompted to input the date him/herself and the format is always inconsistent and MySQL format for the date is YYYY-MM-DD.
Can anyone provide an HTML version checker so that the user will have a message that his/her browser is not compatible with my site? Thanks. Any other suggestions on how to bypass this is welcome as well.
EDIT: My code for processing date are as follows:
<?php
if(isset($_POST['rcdate'])){ $rcdate= $_POST['rcdate']; }
$strSQL = "Insert INTO nqascorecard (
`RcDate`
VALUES (
'$rcdate'
)";
$rs = mysql_query($strSQL) or die(mysql_error());
?>