Yes I deleted the $ In line 6. I struggle with the forum and using the formatting.
Thanks. It worked like a charm.
Now here is a bigger question: Is this how I should be doing this?
User logs in at login.html.
That calls a login.php script that authenticates and returns the user information in json.
From there I want to create a profile.html page that reads in the json and displays user info and manages rights.