LAB 05 | SERVER SIDE SCRIPT (PHP)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • PHP is one of the server-side scripting languages.
  • PHP was originally called Personal Home Page.
  • PHP is an open source and eventually the name changed to PHP Hypertext Pre-processor.
  • PHP script can be embedded within HTML to create dynamic and interactive web pages.

1. Working with Form

  • PHP is really good at handling data submitted to server in HTML forms.
  • HTML forms allow users to enter data into a web page.
  • On the server, we can use PHP page along the form collection to handle information set.
2. Simple form processing
  • The main purpose of a FORM is to accept user input in a systematic structured manner.

<form METHOD= “GET”
      ACTION= “process.php”>


3. Authentication using USERNAME and PASSWORD
  • Authentication is a mechanism for allowing a user to access private information or for preventing them from doing so.






4. Managing session
  • A session is referred to as the duration for which a user is connected to a site.
  • A session is a block of information that stores variables and values.
  • A session consists of an identification string which is called the session ID.
  • This session ID is sent to the user's computer in a cookie called PHPSESSID.



No comments:

Post a Comment