Php Mysql Login Script
NEEDED: PHP/MySQL script that does the following (note: all front-end HTML and CSS is done already
NEEDED: PHP/MySQL script that does the following (note: all front-end HTML and CSS is done already
I have created a website that I’m having troubles getting to work correctly. I have created a login script that works without troubles, but I can’t seem to get the redirect to work. I prefer not to use cookie or javascript, just want to use PHP sessions.
Scope of work is below with example.
The user will get a link within the email that corresponds to a project. When the user clicks the link, I want to see if the user is logged in, if yes, direct them to the page. If not, redirect them to the login page, when completed with the login page, redirect them back to the corresponding project link.
In example, the user is emailed the link http://intranet/hd/view_project.php?id=8, when the user clicks the link the system checks to see if the user has a valid session id, if not it redirects him to the login page. After he completes the login page, he is then redirected to the above link. If he already has a valid session id, he is just simply directed to the above link.
You can modify my code or change to something you have experience with, I don’t care, but it’s got to work. I have attached all the files that will be needed to complete the project. I’m currently developing this website using php 5.2.1 and using mysql 5.0.22 on a windows based machine.
Must be able to communicate via email in timely manner.
Working on an intranet project and not experienced enough with sessions. My project deals with the login portion and the emailing of links. I have created some pages, but open to changes as long as the page layout stays the same. Here are the details.
The user will get a link within the email that corresponds to a project. When the user clicks the link, I want to see if the user is logged in, if yes, direct them to the page. If not, redirect them to the login page, when completed with the login page, redirect them back to the corresponding project link.
In example, the user is emailed the link http://intranet/hd/view_project.php?id=8, when the user clicks the link the system checks to see if the user has a valid session id, if not it redirects him to the login page. After he completes the login page, he is then redirected to the above link. If he already has a valid session id, he is just simply directed to the above link.
I would prefer that the script be in the form of a function, not sure if that is the practical solution. There are two zip files attached to the project, one is the current php pages for the login, the other is the images for the pages. I’m connecting everything to a mysql server which I’m currently running on my development machine.
Hi,
This project should done in JSP/SQL server and will be complete before 27th evening.
Module 1: Job seekers
Section:
1. Registration:
New job seekers entering the website can register himself. After registration, he will be directed to his home page (UserHome).In this page, details about the examination he has to attend will be displayed. If the job seeker is a fresher, he will have to attend the exam which will be conducted at a venue. Details on the Examination-Venue & Date of examination will be shown on this page. In the registration page the job seekers can upload his CV.
2. Login:
From the home page of the web site, a registered user (job seekers) can reach the Login page by clicking the Login link .In the Login page, the registered user has to enter his user name & password to enter his home page. In this page he can edit his profile and update it .If he wants, he can upload his updated CV.
Module 2: Administrator
Administration has the full authority over the website .He can view all the registered users and have the power to delete them. He can edit the web pages and update them.
Module 3: Employers
Employers can post their vacancies and the qualifications that are expected from the job seekers. Also they can view profiles of various job seekers.
I have a simple sign up system where users sign up and then they can change their personal data. I need the following implemented in that sytem:
Users can sign up and submit different account. They can submit a facebook account, Twitter account, Gmail, Yahoo mail, Hotmail as first. It should be easy for admin to add more account types. The deal is that the users type in their log in information – their username and password. When they have written their login information on my site, it is saved in the system. After that they see a list of all the accounts they have submitted. When they have added an account they can hit a button saying ‘Log into (Facebook/Twitter/Gmail etc etc)’. When they hit that button, a session is created that contains username and password (the information is extracted from the database, and put into the session), and the users are redirected to the login page of the site they want to access. When the login page opens the account name and password from the session is pasted to the login forms and the users can now hit the login button.
Admin can add new pages like this: Admin pastes the URL for the login page of the page. Then he writes the value of the login form and password form. When admin has added a new page users will see it on the drop down list when they submit a new account.