Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

**Urgent** I am building a website as a school project. I am using google sign i

ID: 3849501 • Letter: #

Question

**Urgent**

I am building a website as a school project. I am using google sign in for the following page which is the login page and currently the user info goes to the console. However i want to redirect them to a different page once they are signed in along with the user info. How can I achieve this?

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="google-signin-client_id" content="361982ote7bvaii.apps.googleusercontent.com">
       <meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">

<title>The Coyote XChange</title>

<!-- Bootstrap core CSS -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->

<!-- Custom styles for this template -->
       <link href="css/custom.css" rel="sylesheet" type="text/css">

<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-theme.css" rel="stylesheet" type="text/css">
       <link href="css/jumbotron-narrow.css" rel="stylesheet" type="text/css">
       <link href="css/custom.css" rel="stylesheet" type="text/css">
       <script src="https://apis.google.com/js/platform.js" async defer></script>

</head>


<body>
       <script>
function onSignIn(googleUser) {
// Useful data for your client-side scripts:
var profile = googleUser.getBasicProfile();
console.log("ID: " + profile.getId()); // Don't send this directly to your server!
console.log('Full Name: ' + profile.getName());
console.log('Given Name: ' + profile.getGivenName());
console.log('Family Name: ' + profile.getFamilyName());
console.log("Image URL: " + profile.getImageUrl());
console.log("Email: " + profile.getEmail());

       }
   </script>
   <div class="container">
<div class="header clearfix">
  
<h3 class="text-muted text-center">The Coyote XChange</h3>
</div>

<div class="jumbotron">
<h1 class="text-danger">Welcome to The Coyote XChange!</h1>
<p class="lead">Our goal is to provide students affordable textbooks by connecting them with their peers. </p>
<div class="g-signin2 span4 offset4" data-onsuccess="onSignIn"></div>
                  
       </div>
   </div>

</body>
</html>

Explanation / Answer

You can use submit button . On that based on your need, we can go with ajax or Servlet calls to receive those.

Let me know if you want any additional information.