title: Submit form to websocket
body: <p>I'm trying to submit some simple log in data to a server.  All of the requests and functions are working great for "testuser."  I want people to be able to submit their username and password for consideration to the server (it all gets encrypted, and I can't see it.)</p>
  
  <p>I can see where the registration request submits generic data "testuser" for username and pass.  But I have no idea how to get it to accept user login information instead.</p>
  
  <pre><code>                    &lt;!--This is where I'm attempting a login form--&gt;
  
  &lt;form action="/action_page.php"&gt;
    &lt;div class="imgcontainer"&gt;
      &lt;img src="img_avatar2.png" alt="Avatar" class="avatar"&gt;
    &lt;/div&gt;
  
    &lt;div class="container"&gt;
      &lt;label&gt;&lt;b&gt;Username&lt;/b&gt;&lt;/label&gt;
      &lt;input type="text" placeholder="Enter Username" name="uname" required&gt;
  
      &lt;label&gt;&lt;b&gt;Password&lt;/b&gt;&lt;/label&gt;
      &lt;input type="password" placeholder="Enter Password" name="psw" required&gt;
  
      &lt;button type="submit"&gt;Login&lt;/button&gt;
      &lt;input type="checkbox" checked="checked"&gt; Remember me
    &lt;/div&gt;
  
    &lt;div class="container" style="background-color:#f1f1f1"&gt;
      &lt;button type="button" class="cancelbtn"&gt;Cancel&lt;/button&gt;
      &lt;span class="psw"&gt;Forgot &lt;a href="#"&gt;password?&lt;/a&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;!-- This is rock-solid code from the gamesparks API.  Works flawlessly.  --&gt;
      &lt;button onClick='gamesparks.registrationRequest("testuser", "testuser", "testuser", registerResponse)'&gt;Register&lt;/button&gt;
      &lt;button onClick='gamesparks.authenticationRequest("testuser", "testuser", loginResponse)'&gt;Login&lt;/button&gt;
      &lt;button onClick='gamesparks.accountDetailsRequest(accountDetailsResponse)'&gt;Account Details&lt;/button&gt;
                      &lt;button onClick='customEvent()'&gt;Custom Event&lt;/button&gt;
                      &lt;button onClick='customEvent2()'&gt;Custom Event 2&lt;/button&gt;
                      &lt;button onClick='testRT()'&gt;Test RT&lt;/button&gt;
                    &lt;i&gt;Special thanks to the awesome team at GameSparks!&lt;/i&gt;
                    &lt;div id="messages"&gt;&lt;/div&gt;
                    &lt;br/&gt;
                    &lt;br/&gt;
  </code></pre>
  
  <p>All of my buttons work, spitting out data from my backend regarding "testuser."  I know it works because I can alter my data and verify.</p>
  
  <p>You'll notice "testuser" occupies three spaces for one of the onClicks.  One is username, the other is password, and the third is displayname (in that order.)</p>
  
  <p>Displayname can equal Username...if anyone wants extra credit.</p>
  
  <p>But mostly, I want my modal to input the data and submit it for my buttons.</p>