Pi Squared Logo

Notes

Learn to use variables and operators for both strings and numbers in exp01_vars.php

Learn timedate operations in exp03_timedate.php , exp03_timedate_v2.php

Display a table of php_operators.php for reference.

Use <?php require("exp05_ssi_nav.php"); ?> to make the header of many pages. Use a PHP redirect in the index.php that I put in the usual place to redirect to the 'real' index.php (THIS page).

Redirect to an external site is done in exp02a_php_redirect.ph

Use FORM (user enters data), POST(transfer protocol), ACTION (display_save_form.php) server receives, displays and saves the data on the server)


exp04_form.php is a form for user to enter data.

display save_form.php accepts user's data from exp04_form.php, displays the data to user and saves the data in an unsecure text file on the server called test.txt

exp06_read_display_file.php uses php to read and display the contents of existing files test2.txt and test.txt on the server.


Use FORM, POST to submit User ID and password info in either exp09_form_pw.php or exp09_form_pw.htm that calls pw_form_submit.php to confirm the User ID and password

Connect to a database and display table of query results.

exp08_db_select.php does not allow user input.

exp00_db.php adds a form with a POST action to allow the user to specify the input to the query (swimmer ID)

Combine FORM, POST and SQL to submit data directly into a database and display updated results in message_board.php and form_list_works.php

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.

Alternative (does not work yet) SSI: