BhoomikaDua Posted September 13, 2019 Report Share Posted September 13, 2019 Hey, I just completed the Form Validation Project on Studioweb and I would really appreciate help regarding my doubts: 1. If we are enabling Server side validation as well as client side validation, and javascript is on, meaning validate plugin works so does the server side validation automatically turns off? in the tutorials and through my testing, its clear that PHP validation doesn't work when Validate plugin but why? Shouldn't both of them working at the same time? 2. Why do we need sessions in PHP if we can create and use associative arrays like $form['name'], $error['name'] etc. and then use them among different PHP pages? Thank you Quote Link to comment Share on other sites More sharing options...
administrator Posted September 13, 2019 Report Share Posted September 13, 2019 You use client side validation for speed and server side validation for security. Sessions allow you to easily store values across many pages. A session is an array. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.