Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ampscript Login Page:
set @username = RequestParameter('username')
set @password = RequestParameter('password')
if RequestParameter("submitted") == "submitted" then
if @username == "scholarship-user" and @password == "scholarship-pass" then
alert("Incorrect username or password!");
<h2>Login Form</h2>
<form action="" method="post">
<div class="imgcontainer">
<img src=" (" alt="Avatar" class="avatar">
<div class="container">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="username" required="">
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" required="">
<input id="submitted" type="hidden" name="submitted" value="submitted">
<button type="submit">Login</button>
<div class="container" style="background-color:#f1f1f1">
<button type="button" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment