$_POST["firstname"], 'lastname' => $_POST["lastname"], 'username' => $_POST["username"], 'email' => $_POST["email"]); array_push($members, $newMember); file_put_contents($membersFile, json_encode($members)); } header('Location: .'); die(); } ?>