Is it advisable to mix PHP and javascript.
For instance to validate form fields, we can use javascript. Won't that make validation fast, as validation will be done locally.
Best Regards.
Open it in dreamweaver and instantly create a form validation - wow !
Won't that make validation fast, as validation will be done locally.
Yes. But it will also make validation defeatable, as the user can always turn off javascript. So it's fine to do this for speed, but don't think it means that you can avoid doing the checking in your php code.
One would normally tell the user that his javascript should be turned on for this occasion. Turning javascript off defeats its purpose and the main purpose of the website ....
ooohpzz! you could probably help me, i mean i hope so. i'm tryng to make an include that calls a file .js. it doesn't work. functions are used in the main php file WHY? thnk U