Check date entered on a web page against a list of dates in a text file
Posted on 2011-09-15
I need a simple solution to a problem
I want a user to be able to enter a date on a web page.
I then want to be able to compare the date entered by the user against a list of dates stored in a text file on the server (max of 50 or so dates)
If the date matches a date in the list then I want to be able to print "date already taken" next to the date input box
If there is no match of the date entered with a date in the list then I want to display "date available" next to the input.
I don't want a SQL solution (far too complex for me to implement and maintain