<!DOCTYPE html>
<html>
<head>
<title>Statement vs PreparedStatement - Example</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/custom.css" type="text/css">
</head>
<body>
<div id="container">
<form action="servlet/TestLoginServlet" method="post" name="signin" id="signinform">
<h2>Please sign in</h2>
<input type="text" name="username" id="usernamefield" placeholder="please type your username" class="forminput">
<input type="password" name="password" id="passwordfield" placeholder="please type your password" class="forminput">
<br>
<select id="statoptions" name="optlogin">
<option value="1">Login using PreparedStatement</option>
<option value="2">Login using Statement</option>
</select>
<input type="submit" name="submit" id="loginbtn" value="Signin" class="btn">
<input type="reset" name="reset" value="Reset" id="resetbtn" class="btn">
<p class="hint">Correct usename <b>test</b> & password <b>111</b>
<br>Just try password equal to <b>' or '5=5</b>
</p>
</form>
</div>
</body>
</html>
|