Alright, what i need to do here is verify a post login. If the login is successfull it then adds the post username and password to the database. If it failed to login then it will return error.
Example:
I have a login Box. It asks for both Username and Password. A member can donate an account to us, we want to verify that the account is real first before we add it to the database.
They put in the user/pass, it will then post to the url
http://WEBSITE.com/cgi-bin/premiumzone.cgi?login=USERNAME&password=PASSWORD
If the login was successfull then i can run the query to add those details into the database. If the login failed then it will echo an error.
This has to be done through the php, it cant actually change the page to that site and then try and login.
The only help ive got was this little code but im not sure how / if it will work
if($login = true; //they logged in
//dosomething
} else { //they didn't log in
//dosomething
}
function test_log_in($connectiontoSQL) {
if(something) {
return true;
} else {
return false;
}
return $login;
}
If you guys have any ideas or questions let me know, 5 $ instant payapl to whom ever can provide the help