Just to confirm, you've applied server validation, is that correct?
If you have, the form posts to the page that the action specifies, which is the index.php page. When it posts there, if there is no server validation code on that page, it will not validate your form.
If you want to apply client validation, you would apply it to your myincludefilewithvalidation.php page.