0 LIKES LikeUnLike
Hi,Can anyone tell me the php code to check that a variable submitted via a html form is a year between 1900 and the current year (taken from a time variable if poss).To give you an idea of what I mean, here is the equivalent code in Ruby:current = Time.new if year < 1900 or jahr > current.year $error += "You didn't enter a sensible year" end Thanx in advance
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 2 answers.