Hi, I have created a php form and want to validate each fields length using a simple javascript function which taked the variable name and its maximum length. The page self submits, then checks that all fields have values in php. It is once this has been met that I want to call this new function.
Secondly, Im not sure where in the page to declare the javascript functions - the top of my page is <? session_start(); which means i cant declare the html and head tags at the very top of the page. These tags are output via php someway down the page, so how do i get round this?
Thanks, Andy.
Secondly, Im not sure where in the page to declare the javascript functions - the top of my page is <? session_start(); which means i cant declare the html and head tags at the very top of the page. These tags are output via php someway down the page, so how do i get round this?
Thanks, Andy.
Comment