Server Side Form Validation

Server Side Form Validation using Regular Expressions .The preg_match() function searches a string for pattern, returning true if the pattern exists, and false otherwise.

Creating a Date Range Array with PHP

I recently needed to come up with an array of dates between two given dates. I typically work in the MySQL-compatible ‘YYYY-MM-DD’ date format, so I wanted it to use dates like that. So I came up with the following function: