title: What is the purpose of using both javascript and php validation with forms?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3483514/why-is-client-side-validation-not-enough">Why is client-side validation not enough?</a>  </p>
  </blockquote>
  
  
  
  <p>What is the purpose of using the both validations at the same time? Because it's extra burden on the server for validating the form inputs in php if javascript validation is successful. Can not we use a flag and set or unset its value depending upon whether javascript validation is successful or not? And if the flag value is set, we will skip the php validation. Is it not possible? If it's not possible can you explain with a valid real life example? Or can a user modify the value of the flag even if we pass it in header? </p>
  
  <p>Waiting for some logical answers. </p>
  
  <p>Thank you.</p>