Add file upload with validation to custom form
<?php /* Template Name: Contact-Page-with-upload * * A Custom PHP Contact us page. Add or change form fields on line 28 and in the form itself. * Jquery is used to add/remove Bootstrap has-error class to invalid fields. */ /** * Get Error Class * * @return string; */ $response=””; function getErrorClass($failedKeys, $key) { if(isset($failedKeys) … Read more