PHP Authorization Page Sample

Sample Page Titled: authorize.php

  • Include the file pictured below in the same folder as the page you are trying to protect, like any page that allows someone to enter or delete data.  You can download this file at the end of this blog entry.

authorize_page

Script Included on Protected Page

  • You must include this script above all of the HTML on the page you are protecting.
  • You need to also name the file with a .php extension so the web server knows to process the php in the document. For example a main page titled index.html would have to be switched to index.php after the require_once script was included in the header of the file.

authorize_header_solo

  • The image below shows you where the <?php script is located on the protected page:
  • authorize_header

Download

One thought on “PHP Authorization Page Sample

Leave a Reply

Your email address will not be published. Required fields are marked *