ERROR: Browser does not execute the PHP file. The
PHP code is displayed in the browser, instead of being executed.

FIX: Run the code through
the web server, instead of double-clicking the file. Check your address line in
the browser. If the address starts with file:///W:/ it
means that you did not run the code through the web server. Change the address
in the address bar of your browser to be something like http://www.mXXXXXX.it360.cs.usna.edu/Lab8/

FIX: either there is no
matching open curly bracket }, or you forgot a semicolon at the end of the
previous code line

ERROR:
_POST[‘myfieldhere’]
not defined

FIX: STEP 1: Make sure the value
of “name” attribute in the HTML input field is indeed ‘myfieldhere’, including
capitalization since variable names are case sensitive. Example: <input type
= “text” name = ‘myfieldhere’/>

STEP
2:
Make sure the input field is in a form! (you have the start form tag
<form action =… method = …> somewhere before the input field named
“myfieldhere”, and end form tag </form> somewhere after the input field )

ERROR:
_SESSION
not defined

FIX: Make sure you have
the session_start() command at the beginning of any script that uses
session variables.