I'm currently building a vb.net/php user login system, and so far it works ok,
but I can only check the details of one user using only basic if's and else's.
Is there a way I can hardcode more user/password combinations so that the vb.net application
can be used by more than one user?
So far, I only know how to do this;
<?php
$username = "testuser1";
$pass = "user1pass";
If (!empty($_POST)) {
If ( $username == $_POST['usr']) {
If ( $pass == $_POST['pas']) {
Echo "auth_yes";
} Else {
Echo "auth_no";
}
} Else {
Echo "auth_no";
}
} Else {
Echo "Hacking Attempt!";
}
?>
The vb.net app submits username and password info using POST, then reads the response echo'd by the script.
I know it's not secure, but it's the only way I know how to do it.
Anyone know how I can add multiple users or make it a bit more secure?

New Topic/Question
Reply




MultiQuote




|