PHP

PHP notes and test the running of php codes.

iFrame

 

fileCollection - displayed in above box.

 

loginCollection - Login&Signin

  • smartLogin - - source
    • index.html - require email and password of registered users
      • new user : linked to signup which requires name, email and password
      • launches index file again to login.
    • uses own css, js and webfonts.
    • information is validated, and stored locally. - where??
    • comment : good sample but requires editing and personalization.
  • Login & Signup Form : codePen (internet)
    • signup.html - requires signup.css and signup.js - works but unable to understand
    • Html : <link href="signup.css" rel="stylesheet" type="text/css" />
    • Javascript : <script src="signup.js"></script>
  • Login - from myFamily
  • Logins -from code Ref
  • php-login - - source
    • A simple login script used to protect websites with credentials defined on a remote MySQL server.
    • Configuration
      • connection.php. Use this to fill in your database info.
      • db_config.sql which you'll need to execute on your MySQL server
    • navigate to your domain and try logging in. It's set to redirect to the default index.php page with a welcome message. If you can see this, you've done it right.
    • The authorisation code MUST be present above EVERY header on each page. This is what verifies if a legitimate session has commenced.
    • index.php - default login [  devmate,  password1 ]
    • additional supporting files

 

phpNotes

  • Use runPHP ( phpdesktop-chrome-31.8-php-5.6.10) to run html files containing php codes.
  • php files can be displayed in Dreamweaver or Sublime Ted.
  • A PHP script starts with <?php and ends with ?>:
  • comments
    • // for single line
    • /* and */ for multiple lines
  • Forms
    • $_GET and $_POST are used to collect form-data.
    • GET : information from a form visible to everyone.
    • POST : information from a form invisible to others .
    • use echo display all the variables, from the form.
    • welcome : basic php file requiring a separate action file.
    • validation4 - basic form for text fields, ratio buttons, error messages - results posted on the same page -
  • Form sample
  • Name:
  • email sent by user is delivered to gohmoon8@gmail.com
  • Name:
    E-mail:
    Comment:


  • runPHP > dayDate.php - dayDate

 

Samples - iFrame

 

passwordChangePHP-Profile-System-Change-Password

  • version: 1.0.0
  • ### UserName : elias

    ### Password : 123

    ## Full Tutorial

    [On Youtube](https://youtu.be/d2dBVzzorXE)

    ## Authors

    [Elias Abdurrahman](https://github.com/codingWithElias)

     

smartLogin -from github

  • index - enter your email and password - start with this
  • sign-up
  • signin - launches https://192.168.1.113:8003/portal/ because no database
  • home
  • Generally works but unable to follow css etc. Keep for referece of the main structure.

ReadMe documentation - Simple Login System

    • Description
      • Simple login system using JavaScript.
      • It consists of three pages: a signup page, a sign-in page, and a home page.
        • signup page - create an account by providing their name, email, and password.
          • information is validated, and upon successful signup, the user's data is stored locally.
        • sign-in page verifies user credentials against the stored account information.
          • If email and password match, the user is directed to the home page.
        • home page displays a welcome message using the user's name retrieved from local storage.
          • Users can also log out from the home page, which redirects them to the sign-in page.
    • Technologies Used
      • HTML
      • CSS
      • JavaScript
    • Structure - consists of three files
      • index.html: The main entry point for the sign-in page
      • signup.html: Page for user registration.
      • home.html: Page displaying the welcome message for authenticated users.
    • Usage
      • Click the "Sign Up" link on the sign-in page to access the registration page.
      • Fill out the registration form and click "Sign Up" to create an account.
      • Click the "Log in" link to access the sign-in page.
      • Use the email and password you used to log in.
      • After logging in, you'll be redirected to the home page, where your name will be displayed in the welcome message.
      • Click the "Log Out" button on the home page to log out and return to the sign-in page.

     

sample8

 

Copyright © 2001-2025. All rights reserved