Just a simple login system..i used to have it in my site now i think it might be usefull for anyone who needs a login system.. Feel free to modify.
<?php
if (isset($_SESSION['username'])) {
echo "Hello <b>{$_SESSION['username']}</b>";
} else {
echo "Hello <b>Guest</b><br />";
echo "Would you like to login?";
}
?>
;EOF; X-FILE.
Hi, we have a url where it asks for a username and password before we can login to it. May I request if someone can create a script to have this thing automated. Or if its possible if some can create a php script similar to this? I dont have access to our SQL but I can upload script to our PHP server.
What I was planning to do is create a php script that contains my username and password and the url of the page that im trying to login and will upload this script to our php server. So users can just visit my link and probably theirs a button that says click here to log-in they will click it and will automatically be redirected to the url that I specify with out them having to manually type my username and password.
Thanks