Create A Separate Page With One Login That Let's Me Login To All Of The Sripts At Once?
I'm building a website using various php scripts from I found on hotscripts. Because I'm not much of a programmer myself I'm using a separate script for the blog, another one for the links section and a different one for the gallery and so on. The downside to this is that I have to login on a separate page to update the gallery and another page to update the blog and so on.
Is there a simple way to either remove the need for a login for all the scripts and just create a separate page with one login that let's me login to all of the sripts at once?
Or if there's a script that can kinda save the passwords and logs in for me?
View Complete Forum Thread with Replies
Related Forum Messages:
Trying To Create A Login Page Username Password...
i would like to control acces using username password login page, on my host they are using myphpadmin and i was able to create the DB but using dreamweaver i cant see the tables. Where to start, is there any tools that will facilitate this request, or am i doing something wrong with dreamweaver.
View Replies !
Create A Simple Login Page Using Php And A Post Form.
trying to create a simple login page using php and a post form. The following requirement holds, 1. there should NOT be any DB. 2. One user and one password is enough (yeah, said it was a simple one...) Tried with a function check_user() in a lib php-file, and a post form in the login page. Code as follow: <?php function check_user(){ global $userfield, $pwdfield; if( strcmp($_POST[$userfield],"user") == 0 ) { if( strcmp($_POST[$pwdfield],"pwd") == 0 ) { // Correct user echo("correctdir/album.htm"); } else { // Wrong pwd echo("../somdir/default.htm"); } else { // wrong user echo("../otherdir/default.htm"); } } } ?> and the login page for is: <?PHP require('../somelib/login_lib.php'); ?> .... <form name="form1" method="post" action="<?php check_user();?>"> <input type="text" name="userfield" > <input type="password" name="pwdfield" > <input type="submit" name="Log in" value="Log in"> </form>
View Replies !
Phpbb Create A Single Login/logout Page
We run a medium sized website that hosts a phpbb forum. We want to create a custom login/logout script, and I have tried really hard to decrypt the phpbb code but find it really difficult. Does anyone have a basic login/logout script that works with the phpbb database? So writing the sessions/cookies etc. I want to be able to create a single login/logout page where i process everything - ie: set sessions/cookies for login (but finding it hard to work out what values/names to set).
View Replies !
Create A Login Page That Sets A Session Variable
i am trying to create a login page that sets a session variable to be used at the beginning of each subsequent page to check if the login was valid. This is what I've got: Code: $process = $_POST['process']; $validated = 0; if ($process == 1) { $username = $_POST['username']; $password = $_POST['password']; $sql = "select * from user where username='$username' and password='$password'"; $result = mysql_query($sql) or die(mysql_error()); $num = mysql_num_rows($result); /*echo $num;*/ if($num <= 0 ) { $validated = 0; ...................
View Replies !
Main Page Login = Forum Login
This is going to be a website for a club im in at University. Now, I only want members of that club to be able to register. The problem is that they pay a member fee. I want to know a way that when they pay me the fee (in person) I can give them a unique confirmation number from which they can register properly (sorta like a CD-Key). Code:
View Replies !
Login Page Not Redirecting After Login
I've used this same snippet of code in other login forms without a problem (with some slight modifications from script to script) but this one seems to baffle me. Basically it takes the login and validates the entries (validation works, error messages display if left blank), then checks the database for a match. If there's a match then it is supposed to forward the person onto the proper page using the 'header' function. Problem is it's not. Basically it's reverting back to the 'index.php' page (login page) and the display is completely blank. Here's the code for index.php: Code:
View Replies !
Mail Server - Use My Page Login For The Mail Login User Is Stored In $_SESSION
I have a problem and no time to google it and i hope someone will guide me. I have a linux server (slack10) php/mysql and a website where you can create accounts and login. i need to install a mail server with a web interface, i need to have a script that creates automaticly an email account when my page creates an account and a way to use my page login for the mail login user is stored in $_SESSION and the mail will be shown in iframe any sugestions?
View Replies !
Redirect From The Login Page To The Login Page
I have been working on a cms, and I got the login and main admin page working, so what I am trying to do is make it so if your not logged it, it redirects you to the login page. But the problem is once it gets to the login page, it continues to redirect from the login page to the login page, so its nonstop. How can I fix this.. Code:
View Replies !
Login Problem - Can't Login(login Is Done In Index.php)
This is origially PMsys, I have edited it, and here is what I have done with the original replace all $_COOKIE into $_SESSION changed all setcookie() into session_start() and defined those $_SESSION now the problem is I can't login(login is done in index.php), does anyone here got an idea why? I uploaded the whole pakage, but I think you only need to look at index.php and include/global.php.
View Replies !
When To Create A Session After Login
I have created a signup page and login page that work. Right now, if your user name and password match, it just says you have logged in, if they don't, it puts you back at login screen. I have not messed with sessions before. Do I create the session after the query and verifys the login? And then have it load my menu page, where i would call session?
View Replies !
Create A Pay To Login Script
How difficult would it be to create a pay to login script. Integrated with Paypal Duration could be preset. Like 1 day, 3 days, 1 month. different duration equals different prices. automatic exclusion. P.S. NOT an adult site! lol
View Replies !
How To Create Secure Login
But once I'm at the login page, how do I code the html form? I assume I will need a database like MySql to process the authentication. I plan to use email addresses as usernames and a 6 to 10 character password - pretty standard... I have a MySql database set up, but how do I use it for authentication? Can anyone point me to an example of basic authentication with php/MySql?
View Replies !
Create A Login Script
i'm trying to create a login script, there is no need for any complicated script, it simply has to take the username, password, if it matches the database then go to home page, if it doesnt match then return to the login page.
View Replies !
Create A Login Using An About.com Premade
I'm trying to create a login using an about.com premade as I have no PHP experience. When I try to log in with the correct user name and password (double checked them on my table) i get an error message rather than being redirected to the members page. Code:
View Replies !
Login Lgout And Login Without Closing Session Gives Redirection Error
I am stepping through a text book that sets up different websites. The one I am testing is user registration. I set up the scripts and this is what I observe: Login (verifying against a mysql db) - no problem. Logout - no problem. Close the browser and try again - no problem. Login > Logout > Login WITHOUT closing browser I get: An error occurred while loading http://login.php when it should redirect me to http://localhost/index.php. I read somewhere on the news group that the header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname ($_SERVER['PHP_SELF']) . "/index.php") (in my example code) is called once and so the error? The logout.php destroys the $_SESSION variables, session itself and any cookies so I thought it would be "like new" the second time around? It appears to be linked to sessions but don't know enough to know how to correct.
View Replies !
Login Script Doesn't Display If The Login Is Correct Or Incorrect.
Below is the script I am using for my login page. It doesn't display if the login is correct or incorrect. All it does is clear the username and password box when I hit submit. I want it to display an error message if the login is incorrect and if it is correct redirect them to their own web page. I am putting the MySQL connection script in the header of the login.html is this wrong? Can someone please give me some pointers on how to get this script working? <?php session_start(); $username = $_POST['username']; $userpass = md5($_POST['password']); $sql = "select * from usertable where username='$username' and password='$userpass'"; $result = mysql_query($sql); if (mysql_num_rows($result)!= 1) { $error = "Login failed"; } else { $row = mysql_fetch_array($result); $_SESSION['username'] = "$username"; $_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; header("Location: h*tp://www.w-------.com/$row['USLP']"); } ?>
View Replies !
Create A Session For A Login System.
I have php 5 and I am trying to create a session for a login system. My code is below: <?php session_start(); register a session-variable session_register("color"); $color = "blue"; However upon running this script the following error occurs: "Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0" I can view the session being created in a tmp folder but cannot store variables within sessions or view the sessionID. I toggled the register_globals from off to on in the php.ini file and saved that however the changes were not reflected when I ran the script: </php phpinfo(); ?> Is there another way to toggle register_globals. Will this solve my sessions problem?
View Replies !
Session Based Login Script Re Login Problem
I have built this login script, it logs u in and shows the first page... i have built it to be require()'ed, when i have required it from a browser script i made it loads the front page, then when i ask for browser.php?edit=file.html It then asks me to re login and takes me back to the front page! PHP Code:
View Replies !
Secure Place To Store Login Info And How To Login With It
I had an idea to store my login code: ftp_login... in a separate file outside of the public_html dir and set full permission (777) to it. 1. Is that safe? 2. How do I call this function from inside another file? function Login() { $connection= ftp_connect('ftp.me.com'); return ftp_login($connection, "me", "pass"); } I was hoping to return connection but I don't know how to send pointers in php.
View Replies !
Warning: Mysql_num_rows(): - Create A Login Script
I am trying to create a login script and I use the following code to query the database. PHP Code: $query = "SELECT * FROM customers WHERE username='$username' AND userpass= '$password'"; $result = mysql_query($query); $rows = mysql_num_rows($result); But I always get the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource. It's only the PHP Code: $rows = mysql_num_rows($result); line that casuses the error.
View Replies !
Login System - Is It I Need To Create .htaccess File?
if i let only registered user can login to the system, using the system such as add some record (add.php)but i must prevent either unregisterd or registerd user from directly add record in the system without login..that means they directly goto(for example)http://www.mypage.com/system/add.php and add record to the system. how can i do it? is it i need to create .htaccess file? how to create? any guide for doing a system like these?
View Replies !
Authenticate The User With The Login.html, Login.php.
I am setting up a registration/login for my website with PHP and MYSQL. I have a register.html, register.php & a login.html, login.php. I can successfully register a user (using register.html, register.php) into my database. Now, I am trying to authenticate the user with the login.html, login.php. When I try to do so, however, I always recieve my error message "failed." It will not authenticate (despite several attempts of logging in with the same username and password of that which is in my database.) Code:
View Replies !
Hiding Login & Password Fields After Login
I am hoping to do the following, the homepage shows a username and password field. Once the user enters a scucessfull login, these fields are removed. In order to achieve this, must the page be based on one big IF ELSE statement? so... If user logged in hide username & password fields Else show page with username and password fields? OR is this acheived by redirecting the user to a page that is not the homepage after a successfull login? so... the user would login sucessfully and be redirected to a homepage identical to the one with the fields but will have the username & password fields removed?
View Replies !
Login On Same Page
in my login page i redirect to a second page logincheck.php to check the details then redirect to the myaccount.php page when all is well, but i'm not sure how to put the code in the 1 page, because headers can't be sent twice error login.php Code:
View Replies !
Login Page Using Php
is possible using a php page and not using a MySql database? I want to have the client go to a login page and enter their username and password. There are 3 different clients. If they enter the correct username and password they will be ridirected to their individual catalog page, if not they will go to a permission denied page. The code below is not the correct syntax but I hope it gets my idea across. Code:
View Replies !
WML PHP Login Page
I am having problems with the blow page. I have a login page where I enter the userid and password. This then connects to this page. If I enter the userid and password correctly, it prints successfully logged into system. If I enter the wrong information all I get is an erro page HTTP status 502 etc. Code:
View Replies !
Login Page
I tried to make a login page, and store all the required information so that the user will not be able to go directly to a non-authorized page, but the whole idea was a failure. Does anybody know where I can find a script like that.
View Replies !
Login Script Forcing Me To Login Twice?
I have built a login script and for some strange reason its forcing me to login twice. Not saying the user/pass is wrong first time, it moves the headers fine, it just show the old page with the login any ideas? Code:
View Replies !
Get Page Source After Login
I want to get the source of a web page. The problem is that this page is accessible only after I login, using user name and password. I wrote a simple script to get a page source and it works as long as no login is necessary, but for the page I want I only get part of the source, while part is missing. The missing part is with the personal information. I have my username and password, but I don't know how to send them in the script, or what the other side is expecting. (I know the site uses cookies, to store the session information.)
View Replies !
Login Page: Remember ME
This is my 1st posting to this group. Can any1 help me with the "Remember Me" which is there in a login form. Im pasting the code below. Im not able to set a cookie.. <?php // saving script session_start(); displayLogin(); // connect to the server $conn= mysql_connect( 'localhost', 'csci242', 'spring2006' ) or die( "Error! Could not connect to database: " . mysql_error() ); // select the database mysql_select_db( 'blogtagz' ) or die( "Error! Could not select the database: " . mysql_error() ); // get the variables from the URL request string $uname = $_POST['uname']; $password = base64_encode($_POST['password']); $reme=$_POST['rememberme']; /** * checkLogin - Checks if the user has already previously * logged in, and a session with the user has already been * established. Also checks to see if user has been remembered. * If so, the database is queried to make sure of the user's * authenticity. Returns true if the user has logged in. */ function checkLogin(){ /* Check if user has been remembered */ if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookpass'])){ $_SESSION['uname'] = $_COOKIE['cookname']; $_SESSION['password'] = $_COOKIE['cookpass']; } /* Username and password have been set */ if(isset($_SESSION['uname']) && isset($_SESSION['password'])){ //if(confirmUser($_SESSION['uname'], $_SESSION['password']) == 0){ /* Confirm that username and password are valid */ if(confirmUser($_SESSION['uname'], $_SESSION['password']) != 0){ /* Variables are incorrect, user not logged in */ unset($_SESSION['uname']); unset($_SESSION['password']); return false; } return true; } /* User not logged in */ else{ return false; } }
View Replies !
Login / Log Out - Need To Refresh Page?
I got a login / logout script that resides on the same page. Basically if the URI includes action=logout I call a logout function that kills all the session variables. Otherwise I try to log in using the posted data, or do nothing if the form wasn't posted. My problem is that I have somewhere on the page a small piece of code that says: 'You are logged in - <link>logout</link>'. Now upon successful login this piece of code does not appear (until I refresh the page or navigate away from it) and similarly the piece of code still appears once I am logged out (until I refresh the page or navigate away from it).
View Replies !
Unexpected 0 On My Login Page
I'm trying to intergrate a Login PHP System and it was all going well till I noticed a 0 come up at the bottom of my page. On the original script (before I edited it to fit in with my website) it never came up but now I don't know how to get rid of it. It appears in a little table that shows the result of the login, ie. the errors. But now before the user logs in/when they go onto the page a zero pops up. I wanted to keep the system fairly simple and get rid of all the css stuff. Here is the edited source code that gives me the 0. Code:
View Replies !
Referring Page After Login
I am using Dreamweaver's built in authorization code (with modifications to make it actually work) and php5 and I would like the user to go back to the referring page after they login. In other words, a user will read a webpage that says "read more". When they click that it will take them to that page but if they are not already logged in they will go to the login page first. After they log in I need them to be taken to the page that they were headed to. Right now it's taking them to the " $MM_redirectLoginSuccess = "memberarea.php"; page. Code:
View Replies !
Different Page For Different User After Login
i want to make a login page and every user will use the same page for login. when they will give user id and password and the system will automatically show different page for different user. Sample: Admin will automatically redirect to admin.php page User will automatically redirect to user.php page. Any idea and sample code for it ??
View Replies !
Redirect To Same Page After Login..
I have login box running across all pages for login, template based.. so the script is module based .. on login script page tep_redirect(tep_href_link(FILENAME_DEFAULT)); and it goes to index.php -- I want the filename to go the same page after login.... ie stay on the same page... how can I define this ? I thought I could define a _DEFAULT2 and define that where the filenames.php are located... what is the script for redirecting to the self/ same page in php..tried a few things but no luck,,,should be pretty simple?
View Replies !
|