How to attach an external javascript validation file
I have a small form field on each page of my site in order for customers to subscribe to the mailing list. I want to validate it without clogging up the head section with javascript. I've used server side validation and copied out the client side validation code to an external file then attached it as follows ie, <script type="text/javascript" src="js/validation.js"></script>.
However I think the path in the javascript needs some adjustment as its not seeing the entry on the page - it just rejects everything. Can you tell me, a) whether the server side code is secure enough on its own, and b) whether it is possible to attach the javascript file with some adjustments to the code. Thanks.