begin($openid); // Handle failure status return values. if (!$auth_request) { $error = "Authentication error."; include 'index.php'; exit(0); } $auth_request->addExtensionArg('sreg', 'optional', 'email'); // Redirect the user to the OpenID server for authentication. Store // the token for this authentication so we can verify the response. if ($auth_request->shouldSendRedirect()) { $redirect_url = $auth_request->redirectURL($trust_root, $process_url); header("Location: ".$redirect_url); } else { $form_id = 'openid_message'; $form_html = $auth_request->formMarkup($trust_root, $process_url, false, $form_tag_attrs=array('id' => $form_id)); if (is_a($form_html, 'Auth_OpenID_FailureResponse')) { print "Error: " . $form_html->message; } ?> OpenID transaction in progress