You still have the same issue on line 23 - the assignment statement is missing a terminating semicolon.
In addition, the closing '}' brace on line 25 has no matching opening '{' brace. Considering that the if() statement on line 24 does absolutely nothing, I'm wondering if both it and the '}' brace on that line should be removed.
EDIT: Also note that your check for the name containing only letters is outside of the if() statement on line 4. In other words, you'll be checking the contents of $name even in cases where you haven't even defined that variable.