Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Login Page Not Working


I have a database installed that can accept a csv file.
when I installed onto a new server, it wont upload.  is there anything obvious in the phpinfo that could be causing this? also, the login page wont work on this server.
just reloads the page again when submitting the user and pass Code:




View Complete Forum Thread with Replies

Related Forum Messages:
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 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 !
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 !
Re Login Script Not Working
I have a php login script that used to work fine but now it appears to not working correctly - I am assuming its down to the register_globals being now off. Code:

View Replies !
Login Script Not Working
I've used this exact code for 3 other sites. Did I hit a stray key somewhere and I just can't find it? I don't know why it's not working.

<?php
$loggedIn = FALSE;
if (isset($_POST["submit_login"])) {
$un =     $_POST["un"];
$pw = md5($_POST["pw"]);
dbconnect();
$query = "SELECT * FROM users WHERE username='$un' AND password='$pw'";
$result = mysql_query($query) or DIE("Error: LOGIN. Contact Webmaster.");
if (mysql_num_rows($result) > 0) {
$r = mysql_fetch_assoc($result);
$user = $r["username"];
$pass = $r["password"];
if ($u == $user && $p == $pass) {
$_SESSION["user"] = $un;
.......................................

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 !
Sessions Not Working - Login Script
I am trying to get a login script working. I have it working on one site, and I copied the entire script over to another and it doesnt store the session. These 2 sites reside on the same physical server. The one that does not work brings up the login box and when you input the username/password it takes you to the next page, but as soon as you click a link from there it takes you back to log in again, over and over.

I have cleared cookies, rebooted, tried it on a PC using IE (I am on a Mac running Safari as my browser). It works fine everywhere on the other site, but not the new one. Here is the code:

View Replies !
CURL :: Simple Login Not Working
cURL script:

<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,"http://www.crackarcade.com");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, "username=games&password=games");
curl_exec ($curl);
curl_close ($curl);
echo $curl;
?>

View Replies !
Login Script Not Working Properly
The db part of this script is not working as the error messages come when you do not enter any thing or your passwords dont match but when you enter in all the 3 fields i.e.

old password, new password and confirm password and hit the submit button nothing displays on the website ..blank page..there is no error Zend showing when compiling the code:

View Replies !
Login Session Code Not Working
im trying to get the sessions working for my login page the code doesnt give me any error messages but it doesnt seem to restrict any access either this is wot i have so far: Code:

View Replies !
After A Server Move - Login Not Working
My host has just moved servers (without me knowing), anyway - I have a login page, but I can no longer log into my admin area I created.

I know that the MySQL database works, becuase I have a news page which displays results from the database.

Also, if a login attempt fails, I record details of the strings entered in the text fields. If I type bogus logon details in, I can see that an entry is recorded in the MySQL tables (I check this by using phpAdmin that is installed on the server by the host).

however, if I try and login with the correct logon information, it doesn't record my logon attempt, but -it directs me to the logon denied page anyway?

is there any global variable that I may be relying upon that has been changed?

The basic logon script was created with dreamweaver - but the php addapted to suit my needs. However, this works on my home test installation but not on the live web?

View Replies !
Warning: Cannot Modify Header Information - Redirect From Login Page To Logged In Page
I am trying to redirect from login page to logged in page, but using the {header( 'Location: C:wampwww' ) ;} is giving me this error {
Warning: Cannot modify header information - headers already sent by (output started at C:wampwwwpassword.php:14) in C:wampwwwpassword.php on line 35}, find below my code:

View Replies !
Login On Site Insn't Working For Some Users
I have recently completed a site which involves registering and logging in to reach the members area and I have had a few feedbacks saying that they kept getting knocked back on logging in.

I tried it myself on my computer with their login details and it worked but I have seen it not working on another computer. They have cookies enabled, so I can't see what the problem is.

The login simply sets a cookie equal to their id no. - a long int. - no sessions.

View Replies !
Login Form - Password Check Not Working
I have a Login Script, and it has been working fine, except I just realised its been missing one thing, a password check !!! (don't ask me how I missed that  ). I'm trying to put the password check in, but its just not working for me, even though the password put in is correct, here's my script:

View Replies !
Login In A User, And Then Pass The Username And Session_id From Page To Page
I want to login in a user, and then pass the username and session_id from page to page until the leave the admin area of the site. Here's a simplified function: 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 !
User Login Page - Password Requiring Page
i just created a user login page which works. However, I don't know how to get them to a new password requiring page after they press the submit button. How do I go about getting them there?

View Replies !
Login Page Produces Blank Page
What I get when I enter username/password and hit submit is a blank page and the URL never changes. In other words, the login page is 'index.php' and when submitted it should redirect to 'admin.php'. Instead the url/address stays at 'index.php' and the page turns completely blank.

In the previous thread, the problem turned out to be some missing indicator to the md5 encrypted password. Well, in this version, that's there! In fact, I used the ending scripts for that project in creating this project. So, why it won't work is a real mystery. Code:

View Replies !
I Want The Page To Go Back To My Login Page.
I want to logoff my application and I have set up a link to do this. I
got it to destroy my session, but I can't get the page to go to the top
of the browser and do a page refresh. Here is the code I am using.

First there is the link I am using.

printf("<a href="%s?logoff=%s">%s</a><br>", $_SERVER['PHP_SELF'],"logoff", "LOGOFF");

Here is piece I use right at the top of the script to destroy the
session and try to refresh the page.

if (isset($_REQUEST['logoff'])){
session_destroy();
$_SERVER['PHP_SELF'];
}

What do I have to do to get the refresh to work?

View Replies !
Login Page - Previous Page
I have a login page, and instead of going to the index.php page all the time after a successful login, I want the user to be directed to the last page they where at, as long as it is a page on the website.

View Replies !
Login Page/members Page
I am having trouble getting my login page and mebers page to work. I believe it has something to do with the way the cookies are set or something because the if(isset($_COOKIE['cookiename'])) area of the code seems to be what is not functioning correctly. Code:

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 In Page Trouble
Ive been trying to get this login to work all day and it seems like i found the problem, im just unsure how to fix it.. PHP 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 !
Create A Php Login Page
I just want to know how can I create a php login page and a download page for each customer that login's in.

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 !
Login - Opens A Different Page.
How is it possible, to have my login, so that when the username equallys staff 01 staff 02 or admin it opens a different page.

View Replies !
Login Page Processing
I have to use a login form in my web based project. After the username and password has been verified from the database, the system has to display the module for which the user is given access to. How do I code this aspect without using the anchor link.

eg: echo "<a href='somepage.php'>Youhave been directed to the abc system</a>; "
I have considered 2 options:
1).To have a select case and display the module address;
2).To get the module address from the database and direct the user to that page.

View Replies !
Secure Page Login?
I'm a newbie and learning using a php book and Sam's PHP, mysql and apache. The following is on a test site and the db has only user auth info. This accesses a test page. Can anyone see any issues? When I login in it directs back to the Login page per code for an invalid username and password.

View Replies !
Administrative Login Page
The short version: Is there any way to write an HTML form such that the $_SERVER['HTTP_REFERER'] in the PHP script will not be what it really was (ie spoofed)? Code:

View Replies !
User Login Page
I am not able to figure out where the problem lies for this code. When I input wrong id, it does not show me any error and when I put the correct user name and password, it does not go to main.php.

<?php
// we must never forget to start the session
session_start();
$errorMessage = ''

if (isset($_POST['txtUserId']) && isset($_POST['txtPassword'])) {

include 'connect.php'

$userId = $_POST['txtUserId'];
$password = $_POST['txtPassword'];

// check if the user id and password combination exist in database
$sql = "SELECT user_id
FROM tbl_auth_user
...............

View Replies !
Direct To Login Page
how to prevent a user from downloading a file if he simply types a file name at the browser (eg. http://www.abc.com/myfile.zip). If this happens, the browser would direct the user back to the login page and ask him to login first before he can process.

View Replies !
Simple Login Page
I would like to ask on how to create a PHP script with my login page. These are my details:

txtusername -> for username
txtpassword -> for password

$host = "localhost"
$database = "crismon"

View Replies !
Regarding The Sessions For A Login Page
I have created a login page with username i,e mail Id n Password and a sign in Button......that mail id n password were already created in Database.....!!! Code:

View Replies !
After Login, Go To Previous Page
I'm currenting doing a rating program. Anyone can access the profile of any member, but if you want to rate someone, you must login.

Say you are at the member page, you want to rate the person. You select the rating from a drop down menu and hit submit.

The next page first checks to see if you are a member, if you are not, it forces you to login. Code:

View Replies !
Login Page Doesn't Always Redirect
Form login.php page user post username and passwd. in login_ckh.php page it validated usename and passwd from Mysql DB. but the problem is --> login_chk.php not redirect user automatically every time (some time it does,some time it does not).

when it does not redirect, if i press F5/refresh then it redirects to desired page. Their is a BUG in the script. Hours passed but i cannt find any solution. (note: i m new in PHP and session concept). Code:

View Replies !
Two PHP Scripts On One Page Not Working?
I have two small PHP scripts running on a test page

Both scripts work perfectly when there is one script on a page. However, if I place two on the page (one above the other), the second script will not render. I get no PHP error messages - the script will just not render.

I think the PHP Scripts are OK as they were automatically generated by RSS Feed Burner and both do run separately.

There may be an issue with having separate calls of some kind on the page or my server might not be set right. I did a server test that I think shows that it is OK but I am not sure. The only think I have in my htaccess file for PHP is: "AddType application/x-httpd-php .htm .html" .

I am new to PHP and was wondering if anyone can see why both scripts will not run together?

View Replies !
Calendar Page Not Working (in IE)
I have been hard at work on this one and my computer broke so I haven't been able to resolve this problem for a bit, I open the webpage in IE and it doesn't show up but in FF it shows up just fine, anyone able to give me a hand on this one, it was working fine awhile back but now for some reason it seems to have broken. Code:

View Replies !
Flash Not Working On Page
I have inserted Flash animation on my page as normal (using Dreamweaver)- only it won't display in the browser for this site - which has various php/mysql pages on it - but this one is a simple html page - which displays the html - but not the Flash ?

The flash displays in the browser if I insert it into a page on another site - which does not use php/mysql.

Is it to do with the set up of the site which uses php/mysql ? - e.g. the fact there's testing server settings. My sites/servers are hosted remotely - and not on my own machines.

View Replies !
Session Not Working On Page 3
session ..cant get it to work on page 3 it will not display anyhting on page 3
whhat i do wrong Code:

View Replies !
Index.htm Going To Login Page And Sending Back To Index Page
1: A visitors visits a.html page. decides to login and post comment. goes to login page and logs in then I want to send him back to a.html page how do I do that? Here is my login page and login.php page.

2: Same as above but I want to send them back after some time... while I make them view the error, why they have not been able to login. Code:

View Replies !
Set A Cookie For A Login Page To Get The Browser
How do you set a cookie for a login page to get the browser to remember the login info.

Also, I read that :

header("cache-control: private") or something close causes IE to maintain form post data in case an input error is made and the user needs to go back to the form. Is this accurate?

View Replies !
Login, Then Go Back To Last Visited Page
I have a form that calls login.php, and the form can be included allmost every where in my site, for login purpose. But as soon as the login verifies.. the browser is redirected to one sertaint page. PHP Code:

View Replies !
The Best Way Of Writing Login Page To Be Secure
i use session to secure my login page
i register a key in every session that store IP's who login to admin
control panel and timestamp.
but i think it is not so secur
do u have the best way using of session

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved