Jump to content
Killersites Community
BhoomikaDua

Form Validation Project Doubts

Recommended Posts

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

Share this post


Link to post
Share on other sites

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. 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×