Login to our sample site

Please log in with a random username and password.
We will pass the username to a Riddle on the next page and pre-fill a form field with it.
Any username or password will work. This is a fake login screen simulation to showcase the use of the Riddle Data Layer

Login



Source Code on this page

The code on this page simply captures the form entry and redirects the user to the next page, passing the form data along as a POST variable.
Make sure to replace the form action with the URL of the page you want the user to go to after the login.

<script>
<form action="welcome.php" method="post">
    <label for="username">Username:</label>
    <input type="text" name="username" id="username" required>
    <label for="password">Password:</label>
    <input type="password" name="password" id="password" required>
    <input type="submit" value="Login">
</form>

Download