I would ask about using javascript function on server side for validation, are is true, secure and truth way ?
I see a website was development like this .. when user post data, php file was call a javascript function and check if valid or no .. so im ask about it.
I think its not secure, for many of cases like XSS, if Im true, can you give me some of issue for this procedure.
thanks a lot.