Sunday, February 11, 2018

Difference between form handling and file handling

Difference between form handling and file handling

  1. Form Handling

  • Form handler just checks the input.
  • Confirm the name and address given.
  • Use pattern to confirm email, SSN, zip code(It will allow to the user to know the problem)
  • Doing more extensive calculations,
  • Using the information to construct a customized HTML page for the client.
  • Use to prevent web from abuse(From malicious use  such as 
  1. header injection attack
  2. cross-site scripting
  3. SQL injection

     2.File handling

  • Refers to the transfer of data to/from a storage medium
  • System IO.namespaces contain types that enable reading and writing on data streams and files.
  • File handling has to deal with directory path, disk, storage, and file/directory name,
  • Ordered and named collection of bytes that has persistent storage (Doesn't disappear after power off)
  • Sequence of bytes that can be read from and written to
  • May represent disk, memory , network etc..


No comments:

Post a Comment