A
alexis
Hi,
In a form I have the curent date
<input name="datetoday" type="hidden" value="<? echo date("d/m/Y"); ?>">
and
<input type=text name="datebox" size=15>
The date format is d/m/Y (day/month/year) in both case
Now my problem is that i want to know if 'datebox' is valid, that means
after 'datetoday'.
I tried :
function checkFields() {
missinginfo = "";
if (document.form.datebox.value < document.form.datetoday.value) {
missinginfo += "\n - date not valid";
}
But this doesn't work because of the '/'.
Can someone help me, thanks,
AL
In a form I have the curent date
<input name="datetoday" type="hidden" value="<? echo date("d/m/Y"); ?>">
and
<input type=text name="datebox" size=15>
The date format is d/m/Y (day/month/year) in both case
Now my problem is that i want to know if 'datebox' is valid, that means
after 'datetoday'.
I tried :
function checkFields() {
missinginfo = "";
if (document.form.datebox.value < document.form.datetoday.value) {
missinginfo += "\n - date not valid";
}
But this doesn't work because of the '/'.
Can someone help me, thanks,
AL