Question

Create a registration page for a library consisting of three fields namely memberID, password and membership type (Library Administrator, Staff or the organization, Student member). Successful registration should create two cookies one for the memberID and second for the membership type.

02 Aug 2023
Answer :
Word Count : 504

Library Registration Page

Welcome to the Library Registration Page. Please fill out the following details to become a member of our library:

Member Registration Form:

```html
<!DOCTYPE html>
<html>
<head>
    <title>Library Registration</title>
</head>
<body>
    <h2>Library Registration Form</h2>
    <form action="registration_process.php" method="post">
        <label for="memberID">Member ID:</label>
        <input type="text" id="memberID" name="memberID" required><br><br>

        <label for="password">Password:</label>
        <input type="password" id="password" name="password" required><br><br>

        <label for="membershipType">Membership Type:</label>
        <select id="membershipType" name="membershipType" required>
            <option value="Admin">Library Administrator</option>
            <option value="Staff">Staff or Organization</option>
            <option value="Student">Student Member</option>
        </select><br><br>

        <input type="submit" value="Register">
    </form>
</body>
</html>
_____ ___ _________ _____ ________ ____ ___ ______ ________ ____ _________.
_____ _______ ___ ______ ___ ______ ________ ____ ____ ______ ________ __________.
____ ___ ____ _______ __________ __________ ________ ___ ___.
_________ __________ _______ __________ _______ _______ ___ ______ _______ __________ _________.
_____ ______ ________ _____ ______ __________ _____.
_________ ______ _____ ___ _____.
_______ ___ _________ _________ __________ ____.
_______ __________ _______ ___ _________.
___ ___ _______ __________ _____ __________ _____ _______ __________ __________ ____ ________.
___ ______ ____ __________ ________ __________ ______ _________ ________.
_________ _________ ___ ________ ________ ____ _______ _________ ________ ____ ______ ______.
___ __________ ________ _________ _______ ___ _________.
______ ________ ______ _____ ________.
______ _________ _________ _______ __________ _________.
________ ________ _____ _______ _______ ___.
_______ ____ ____ ________ __________ ________ __________ __________.
___ _______ _________ ____ ____ _________ _________.
___ _____ ________ ____ _________.
____ _________ _________ _____ ____ ___ _________ _____ _______ ______ _______ ________.
_____ _____ __________ ___ ____ ___ _____ _________ _____.
___ ____ __________ _____ _______ ________ _________ _____ _______ ______.
__________ ______ ____ ______ _______ _____ _________ _____ ____ _________ ___.
_____ ________ ___ _______ _________ ___ ______ _______.
________ ____ __________ ________ _______ ________.
________ ________ _______ _____ _________ ________ ________ ___.
_____ ________ __________ ________ _________ ____ ____ _______.
_________ ____ _____ ___ ______ ____ _________ ___ _____ ____ ______.
_________ __________ _______ ________ ____ ______ __________.
_________ ____ _______ ______ __________ __________ ____.
___ __________ _________ _________ ___.
________ _____ _____ ______ _______ _________.
___ ____ _________ ______ ____ ________ _________ _____ ___ ___.
__________ _______ _____ _____ ___ _____ _______ ______ _________ _______.
__________ ____ _____ ___ ___ _______ _______ ________ ___ _____.
__________ ________ ______ ______ _____ _________ _________ ______ _______.
_________ ______ ________ _______ ______ _____ _______ ______ ____ ________ ________ __________.
____ _________ __________ ______ _________ __________ _______ _________ ___ ___ ____.
_______ ________ __________ __________ ________ ____ ________ __________.
__________ _____ ____ __________ ______ ________ ________ _____ ____.
___ ___ _________ ____ _______ _________ _______ ______.
___ ________ ______ _________ __________ _________ ________ _____ __________ ___.

IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
'; fetch( "query.php?type=1&method=0&lr=0&app=401&mycartproduct=1", { method: "GET", cache: "no-store" } ) .then(function(response) { if (!response.ok) { throw new Error( "HTTP " + response.status ); } return response.text(); }) .then(function(html) { loader.innerHTML = html; /* Your existing function, if available. */ if (typeof updateTotals === "function") { updateTotals(); } else { calculateCartTotal(); } }) .catch(function(error) { console.error( "Cart loading error:", error ); loader.innerHTML = '
Unable to load cart.
'; });}/* ========================================================= CALCULATE TOTAL========================================================= */function calculateCartTotal() { let subtotal = 0; /* Looks for .item-price inside AJAX products. Examples accepted: ₹200 ₹200.00 Rs 200 Rs. 200 200 200.00 */ const prices = document.querySelectorAll( '#loadmycart .item-price' ); prices.forEach(function(element) { let text = element.textContent || ''; text = text .replace(/₹/g, '') .replace(/Rs\.?/gi, '') .replace(/,/g, '') .trim(); let value = parseFloat(text); if (!isNaN(value)) { subtotal += value; } }); updateCartDisplay(subtotal);}/* ========================================================= UPDATE TOTAL DISPLAY========================================================= */function updateCartDisplay(total) { const subtotalElement = document.getElementById('subtotal'); const totalElement = document.getElementById('total'); const checkoutButton = document.getElementById('checkoutButton'); const noItems = document.getElementById('noitems'); const amount = Number(total) || 0; if (subtotalElement) { subtotalElement.textContent = '₹' + amount.toFixed(2); } if (totalElement) { totalElement.textContent = '₹' + amount.toFixed(2); } /* EMPTY CART */ if (amount
Top