A bunch of php that validate and sanitize input.