I'm not sure if we need to provide documentation of our work, nevertheless here it is:
Parse error: syntax error, unexpected T_VARIABLE in /home/classes/mfoste05/public_html/adder.php on line 9
PROBLEM: missing concatenator before $myTotal variable. Note to self: I tried re-creating this one line of code with and without the period and it had same error message w/o period concatenator
Parse error: syntax error, unexpected '}' in /home/classes/mfoste05/public_html/adder.php on line 13
PROBLEM: missing semicolon at end of line 12 which causes unexpected ‘}’character on next line. Note to self: Page 6 of book says that all PHP statements (lines of executed code) must end with a semicolon.
Parse error: syntax error, unexpected $end in /home/classes/mfoste05/public_html/adder.php on line 28
PROBLEM: the curly bracket on line 13 needs an ending curly bracket but the bracket on line 26 is facing the wrong way. Note to self: I searched for “Parse error: syntax error, unexpected $end” and http://www.phpbuilder.com/board/showthread.php?t=10316154 said “That error is usually as a result of a missing curly bracket , post a bit of code that causes the error” so I assumed it had something to do with a curly bracket
error: \form action="/~mfoste05/adder.php"> Enter the first number:
error: typed in numbers, but form didn’t calculate, just returned form with no values in boxes
PROBLEM: missing method="post". Note to self: I looked at postback1.php example and deleted the method="post" from it to see what it would do, it also came back with no values in boxes
error: same one
PROBLEM: thought it might have something to do with print statement and saw above the print statement that $num2 variable had ‘n’ as capital ‘N’ – so changed to lower case to match original naming convention on line above it
error: same one
PROBLEM: this line: $myTotal -= $num1 + $num2; it should be = instead of -=
error: same one
PROBLEM: this line: Enter the first number:
-- name=”num1” not “Num1”
error: You added 76 and 543 and the answer is 619!
Notice: Undefined index: php_self in /home/classes/mfoste05/public_html/adder.php on line 15Reset page
PROBLEM: php-self wasn't capitalized
1 comment:
Melissa,
You're right that you were not required to document assignment 2, but you did a fab job, and earned 10 extra points!
Thanks for all the hard work!
Post a Comment