Hi,
Lately, I have been working in a project that demands that the data that is entered from the users must be validated. I wrote the whole code in php, and it worked fine outside Drupal (The required fields must be filled and the optional ones must not), with a javascript form validator (gen_validatorv2.js from www.javascript-coder.com).

When I included the php code in my drupal site (include 'blablabla/form.php'), the validation did not worked.

What must I do? should I enable something in drupal or I must not use javascript code in drupal's pages? The weird thing is that other javascripts work properly.

I hope you can help me if you know and can.... thanks in advance