Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- put this in rpc.php
- case "register":
- $username = $_POST['username'];
- $password = $_POST['password'];
- $register = new clientDB("connect.ini");
- $response = $register->addNewClient($username,$password);
- if ($response['success']===true)
- {
- $response = "Registration Successful!<p>";
- echo"<a href=index.html>Return to login</a><br/>";
- }
- else
- {
- $response = "Registration Failed:".$response['message']."<p>";
- echo"<a href=index.html>Return to login</a><br/>";
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement