Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- Layout = "~/Layout.cshtml";
- var userName = "";
- var password = "";
- string status = "fail";
- if(IsPost)
- {
- userName = Request.Form["userName"];
- password = Request.Form["password"];
- var db = Database.Open("PublicDatabase");
- var data = Database.Open("PublicDatabase").Query("SELECT * FROM AccountData");
- foreach(var row in data)
- {
- }
- }
- }
- <form method="post">
- <p>
- <label for="title">Item Name:</label>
- <input type="text" name="userName" value="@userName" />
- </p>
- <p>
- <label for="genre">Ranking:</label>
- <input type="text" name="password" value="@password" />
- <input type="submit" name="loginButton"/>
- </p>
- @status
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement