Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 KB | None | 0 0
  1. @{
  2.     Layout = "~/Layout.cshtml";
  3.    
  4.     var userName = "";
  5.     var password = "";
  6.     string status = "fail";
  7.  
  8.     if(IsPost)
  9.     {
  10.         userName = Request.Form["userName"];
  11.         password = Request.Form["password"];
  12.  
  13.         var db = Database.Open("PublicDatabase");
  14.         var data = Database.Open("PublicDatabase").Query("SELECT * FROM AccountData");
  15.         foreach(var row in data)
  16.         {
  17.            
  18.         }
  19.  
  20.  
  21.        
  22.     }
  23.  
  24. }
  25.  
  26. <form method="post">
  27.     <p>
  28.         <label for="title">Item Name:</label>
  29.         <input type="text" name="userName" value="@userName" />
  30.     </p>
  31.     <p>
  32.         <label for="genre">Ranking:</label>
  33.         <input type="text" name="password" value="@password" />
  34.         <input type="submit" name="loginButton"/>
  35.     </p>
  36.     @status
  37. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement