<form class="form-signin" form action="" method="post"> <center><h2 class="form-signin-heading"><span class="glyphicon glyphicon-th-large"></span> PerPusWeb </h2></center> <div class="input-group"> <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> <input type="text" id="username" name="username" class="form-control" placeholder="Username" autocomplete="off" autofocus="on" required> </div> <div class="input-group" style="margin-top: 5px;"> <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span> <input type="password" id="password" name="password" class="form-control" placeholder="Password" autocomplete="off" required> </div> <br /> <button class="btn btn-lg btn-primary btn-block" name="submit" type="submit">Sign in</button> </form> </div> <script src="js/ie10-viewport-bug-workaround.js"></script> </body> </html> <?php try { require_once "nusoap-0.9.5/lib/nusoap.php"; $client = new soapclient("http://localhost/perpusweb/login_server.php?wsdl"); if (isset($_POST['submit'])) { $response = $client->loginService($_POST['username'], $_POST['password']); echo "{$response}"; } } catch (SoapFault $e) { echo $e->getMessage(); }