david8640 / RestaurantSignaturesSoftware

4 stars 1 forks source link

Validation server side (supplier) #42

Closed david8640 closed 10 years ago

david8640 commented 10 years ago

PHP

omarhijazi22 commented 10 years ago

@david8640 @aassaly Hey I know we spoke about this validation stuff during our little meeting, however I really should have wrote down what was happening because now with all the midterms and such, when I came to do it now I am kind of blank on what to do. If any of you are free some time tomorrow or monday (please keep in mind i have my last midterm tomorrow, sunday at 7pm..) or if any of you are okay to type out what really needs to be done for creating a validation for both client and server.. Thanks guys!

david8640 commented 10 years ago

I will give you more information tomorrow morning on the issues :)

omarhijazi22 commented 10 years ago

Thanks a lot! :+1:

david8640 commented 10 years ago

Pour la validation server side, c'est un peu le même principe que la validation client side, mais cette fois ci ca doit être fait en php. Le but est de valider les valeurs reçu avant de faire du traitement sur ces valeurs.

Tu as deux choix :

\ Il est nécessaire de valider les champs du côté serveur et du client simplement au cas où le js serait désactivé. La validation du côté serveur évitera qu'une valeur non désirable se loge dans notre base de données.

david8640 commented 10 years ago

We will use kohana for this.