C#C
C#3y ago
gamer50082

✅ need someone to fix a html for me

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Login</title>
  </head>
  <body>
    <h1>Login</h1>
    <form action="http://144.24.154.156:5445/login" method="POST">
      <label for="username">Username:</label>
      <input type="text" id="username" name="username" required><br><br>
      <label for="password">Password:</label>
      <input type="password" id="password" name="password" required><br><br>
      <button type="submit">Login</button>
    </form>

    <h1>Register</h1>
    <form action="http://144.24.154.156:5445/register" method="POST">
      <label for="username">Username:</label>
      <input type="text" id="username" name="username" required><br><br>
      <label for="password">Password:</label>
      <input type="password" id="password" name="password" required><br><br>
      <label for="confirm-password">Confirm Password:</label>
      <input type="password" id="confirm-password" name="confirm-password" required><br><br>
      <button type="submit">Register</button>
    </form>

    <script>
      // Parse the query string to get the token parameter
      const queryString = window.location.search;
      const urlParams = new URLSearchParams(queryString);
      const token = urlParams.get('token');

      // If a token was received, display it
      if (token) {
        const tokenElement = document.createElement('p');
        tokenElement.textContent = `Your token is: ${token}`;
        document.body.appendChild(tokenElement);
      }
    </script>
  </body>
</html>
Was this page helpful?