How do I check that fields in a form match an email or date pattern before being sent? I can check that the fields are not null and that they contain strings of a certain length (or greater) but how do I check for a "@" and a "." character (for email validation) and a date.
I need the date to pass it to an ASP page in order to to access records from a database created between time x and y. I say this because the date format in the field may need to be of a certain format to work in a SQL statement. But I don't know what or how.
Any ASP/JavaScript people know? Thanks.
I need the date to pass it to an ASP page in order to to access records from a database created between time x and y. I say this because the date format in the field may need to be of a certain format to work in a SQL statement. But I don't know what or how.
Any ASP/JavaScript people know? Thanks.