well not quite
the thing to do especially when dealing with date and time input is to ensure the the user is only able to input valid data.
eg;
Never use a text box for collecting dates, unless you want to have a whole raft of if statements to work out what someone typed in.
As the programmer you should be in control of what is allowed or not and how the requesting form is presented to the user.
That way there is less need for validation of the user input.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|