PHP Classes

Validation

Recommend this page to a friend!

Methods for validating forms

  All package blogs All package blogs   PHP Forms Class with HTML Generator and JavaScript Validation PHP Forms Class with HTML Generator and JavaScript Validation   Blog PHP Forms Class with HTML Generator and JavaScript Validation package blog   Blog Validation  
  Post article Post article  

9. Modern PHP CSRF Protection Example using a PHP Forms Library

Updated on: 2023-01-24

Posted on:

Cross-Site Request Forgery (CSRF) attacks are means that badly intentioned users may use to make users of a site perform actions without intention. For instance, a successful CSRF attack can make e-commerce purchases, and the purchased goods are delivered to an attacker's location address.

Good Web sites are protected against CSRF security attacks. Attempts to perform these attacks are ignored.

As a responsible Web developer, it is in your best interest to learn how to prevent these attacks so your PHP Web projects can be more secure.

Please read this short article to learn more about CSRF attacks and a practical example of protection against CSRF attacks in your Web form pages generated and processed by PHP.


Blog More ...   Post a comment Post a comment   See comments See comments (2)   Trackbacks (0)

8. Validating PHP Form Inputs Depending Other Inputs

Updated on: 2017-02-13

Posted on:

Sometimes you have PHP generated pages with forms that have fields which you may want to validate or not depending on the state of other fields.

This article tells how you can easily implement conditional validation logic by explaining how to make one field be validated only if a radio or checkbox is site or some other special custom logic that you need to implement.


Blog More ...   Post a comment Post a comment   See comments See comments (3)   Trackbacks (0)


All post categories


  Post article Post article  
  All package blogs All package blogs   PHP Forms Class with HTML Generator and JavaScript Validation PHP Forms Class with HTML Generator and JavaScript Validation   Blog PHP Forms Class with HTML Generator and JavaScript Validation package blog   Blog Validation