I have this code, I don't know if it's true or not
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
<form name="ajaxform" id="ajaxform" action="https://www.golantelecom.co.il/rpc/web.account.rpc.php?action=login&p_action=" method="POST">
username: <input type="text" name="username" value ="1863818"/> <br/>
password: <input type="text" name="password" value ="000000000000" /> <br/>
</form>
<input type="button" id="simple-post" value="login" />
<script>
!!!
</script>
</body>
</html>
I want to log in silently, without going to the original login page, and saving cookies in my browser.
It prints a message on the html page under the login button: "Login successfully with 1863818" after pressing the login button.
How does the script know that this login is true or false? I want the script to read the "source page" to search for a specific word (I specify it) If it finds it, the login has been successful, and if it does not, it means that the login failed.