Hi,
I have a form that contains amongst others a text-field where users
should enter their year of birth.
<input type="text" name="year_of_b irth">
Within the php script that parses the info, I try to check if a valid
birth-date was given, using the checkdate function. This function
expects integers as parameters, so I tought converting the text to an
integer value would work.
checkdate (1, 1, (int)$_POST["year_of_bi rth"])
However, this doesn't work, and I cannot seem to find out why... Any clues?
cheers,
E.T.
I have a form that contains amongst others a text-field where users
should enter their year of birth.
<input type="text" name="year_of_b irth">
Within the php script that parses the info, I try to check if a valid
birth-date was given, using the checkdate function. This function
expects integers as parameters, so I tought converting the text to an
integer value would work.
checkdate (1, 1, (int)$_POST["year_of_bi rth"])
However, this doesn't work, and I cannot seem to find out why... Any clues?
cheers,
E.T.
Comment