Home page of experiments writing PHP code

List of web page experiments that use php.

  1. Learn to use variables and operators for both strings and numbers. exp01_vars.php
  2. Learn timedate operations exp03_timedate.php
  3. Display a table of php_operators.php for reference.
  4. Use FORM (user enters data), POST(transfer protocol), ACTION (display_save_form.php) server receives, displays and saves the data on the server)
    1. exp04_form.php is a form for user to enter data
    2. display save_form.php accepts user's data, displays the data to user and saves the data in a text file.
  5. Use php to read and display the contents of an existing file on the server. exp06_read_display_file.php
  6. Use ssi (exp05_ssi_nav.php) to make the header of many pages. Also, see note in the right column.
  7. Connect to a database and display table of query results.
    1. exp08_db_select.php does not allow user input.
    2. exp00_db.php adds a form with a POST action to allow the user to specify the input to the query (swimmer ID)
  8. Use FORM, POST to submit User ID and password info and confirm exp09_form_pw.htm
  9. Use FORM, POST to submit data directly into a database form.htm

Notes:

  1. Apparently, php does not recognize the styles of tags like <body>, <h1> when those styles are in the external style sheet. It does however recognize styles of tags with classes or id's.
  2. Use SSI (server side include) to make the banner and site navigation. Because the index and the files are in different locations (necessary?) the ssi.php file for the index and the other files (exp05_ssi_nav.php) are different.


Web site by StevenGrindle.com


Free Internet Browsers

Firefox Logo Safari Logo Internet Explorer Logo

Amaya Logo


This web site is designed to be compliant with standards developed by the World Wide Web Consortium (W3C)

Valid XHTML 1.0 Strict  Valid CSS!