Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <form class="form-signin" method="POST">
- <script>
- var xmlh = new XMLHttpRequest();
- xmlh.open("POST", '/connect.php', true);
- xmlh.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
- xmlh.onload = function() {
- console.log(query);
- }
- xmlh.send('username=username&password=password&email=email');
- <h2 class="form-signin-heading">Please Register</h2>
- <div class="input-group">
- <span class="input-group-addon" id="basic-addon1">@</span>
- <input type="text" name="username" class="form-control" placeholder="Username" required>
- </div>
- <label for="inputEmail" class="sr-only">Email address</label>
- <input type="email" name="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
- <label for="inputPassword" class="sr-only">Password</label>
- <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
- <button class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
- <a class="btn btn-lg btn-primary btn-block" href="login.php">Login</a>
- </form>
- </div>
- -- INSERT -- 66,7 Bot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement