Attendance Confirmation Page

57 Views Asked by At

I am creating a page where students log in their attendance for a class by putting in their SID and a key provided by the professor. Then it will go through the servlet and post that the student was there on a google spreadsheet (backend). My question is, after the SID is confirmed and everything how can i redirect them to a "Thank you for your Submission" page? We want them to get a confirmation page, so that they can have a receipt to show the professor that they were in class. We would like to later implement it where we can even send a email confirmation page to the student.

<body>
    <div id="title">
            <h2>CSC 131 Student Attendance</h2>
    </div>
    <div id="login">
        <form action ="QuickServlet" method="post">
            <h2>Student:</h2>
            <center><input type="text" id="key" placeholder="Enter Key:"/></center>
            <center><input type="text" id="Studentid" placeholder="Enter StudentID:"/></center>
            <center><input type="submit" id="mySubmit" value="Submit"/></center>
        </form>
    </div>
</body>
1

There are 1 best solutions below

0
Wayne Allen On

In Javascript, you can use window.location.assign('confirmation-page-url'); to redirect to a new page.