SHARE
TWEET

Untitled

a guest Jul 21st, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top