jesseruu
Sep 3 2008, 05:26 AM
Hey everyone! I am helping someone make a login system using MySQL databases and a PHP login form. I have a fair bit of experiance in HTML and some javascript too. I have virtually no experiance in MySQL or PHP. Anybody know of any good PHP login systems that allow you to creat a personalised page for each user and when they login the system transfers the user to their page. Another thing that the system MUST have is a way of stopping unwanted users entering someones page. CODE For example lets say I register and my UN is jesse123 and my personalised pages address is: www.mydomain.com/members/jesse123.php Then I decide I want to view someone elses page.... www.mydomain.com/members/admin.php I know you can make the users page names more complicated but if someone uses a search engine they could easily find out someone elses page address. Does anyone know of a way to create a login form like this or know somewhere where you can download one? kind regards, Jesse R.
Comment/Reply (w/o sign-up)
shadowx
Sep 3 2008, 10:43 AM
Damn, if you have no PHP experience you will find this very tough, There are two ways of doing this... One is to have the PHP page as you said and within that page have a login form and some IF statements. The second option is to make use of sessions. If you do not use sessions everytime a user goes away from their page and comes back again they will have to login all over again. So you can have a central login page, which starts the sessions, then they are taken to a dynamic "user.php" page which connects to a database and takes out info that is filled in on their custom page. I cant code you the page myself, im busy at the moment but i think you've jumped in at the deep end here!
Comment/Reply (w/o sign-up)
jesseruu
Sep 4 2008, 05:10 AM
QUOTE(shadowx @ Sep 3 2008, 08:43 PM)  Damn, if you have no PHP experience you will find this very tough,
There are two ways of doing this... One is to have the PHP page as you said and within that page have a login form and some IF statements.
The second option is to make use of sessions. If you do not use sessions everytime a user goes away from their page and comes back again they will have to login all over again. So you can have a central login page, which starts the sessions, then they are taken to a dynamic "user.php" page which connects to a database and takes out info that is filled in on their custom page.
I cant code you the page myself, im busy at the moment but i think you've jumped in at the deep end here! Thanks for that mate! I'll look into how to code sessions.... Jesse
Comment/Reply (w/o sign-up)
rpgsearcherz
Sep 4 2008, 05:54 AM
Heh, you're kind of in the same ballpark as me. I know absolutely nothing about PHP but I am wanting to learn for a project I am working on as well(Login for an entire site, where some is visible when logged in, some is visible if you are signed up, and everything is visible if you are an actual verified member) So far I haven't actually started yet, though, as I am currently working on other things.
Comment/Reply (w/o sign-up)
jesseruu
Sep 4 2008, 06:22 AM
QUOTE(rpgsearcherz @ Sep 4 2008, 03:54 PM)  Heh, you're kind of in the same ballpark as me.
I know absolutely nothing about PHP but I am wanting to learn for a project I am working on as well(Login for an entire site, where some is visible when logged in, some is visible if you are signed up, and everything is visible if you are an actual verified member)
So far I haven't actually started yet, though, as I am currently working on other things. Yeah, I'm reading throug on online tutorial... found here http://www.php-mysql-tutorial.com/You can download redily made systems like this http://evolt.org/PHP-Login-System-with-Admin-Features that gives you admin features and more. The only problem with ready made systems is that anyone can view the source code of your login system if they find out where its from. Jesse
Comment/Reply (w/o sign-up)
travstatesmen
Sep 4 2008, 08:40 AM
QUOTE(rpgsearcherz @ Sep 4 2008, 05:54 PM)  I know absolutely nothing about PHP but I am wanting to learn for a project I am working on as well(Login for an entire site, where some is visible when logged in, some is visible if you are signed up, and everything is visible if you are an actual verified member) That sounds very much like the login system that I am using with Lanius CMS. Have you considered using a Content Management System, rather than starting to build your site from scratch? The CMS that I use, (and I'm sure that other CMS packages have similar functionality) allows for page permissions to be set for groups of users. By default there are the following groups in Lanius CMS... - Public
- Registered
- Editor
- Publisher
- Manager
- Administrator
- Nobody
I can assign permissions, for instance, for registered users to be able to view certain areas of the site, or for Publishers to add content to the site, etc. The back-end uses a mySQL database, and it is all created in PHP. And what's more, I didn't need to write a single line of code to make it happen (which is a good thing, as I'm a hopeless programmer!) A good Content Management System should be as invisible as possible, so your users should not even know that you are using a Content Management System. I have a long way to go yet in customizing my site, and I might even decide against using Lanius as my CMS of choice. But either way, a CMS, any CMS, is easier than trying to write the code yourself. As they say, why reinvent the wheel?
Comment/Reply (w/o sign-up)
shadowx
Sep 4 2008, 01:18 PM
using a CMS is a good idea. I can give you a few tips if you want to learn php though. Firstly think logically, think in sequence. So if you need someone to login to see a page think of it like this User sees login page> (assuming they are registered) User types info and hits submit > PHP code checks to make sure its not trying to inject code and hack > (assuming its clean) PHP asks the database for the password of the user called "USERNAME" > If it cant find that password the user doesnt exist (give error message) If it does find a password check it against the one entered > If it is wrong take them back to the login page. If its right Start a session > Session is loaded with the user's name and the password they entered (preferably in an MD5 hash) > Redirect them to the first protected page. on the protected page you need to: Load up the sessions again (using an include probably) > check the data in the session variables against the data in the database > If the data doesnt match they get logged out by destroying the session. if it matches they stayed logged in > Use an IF statement to check if they are logged in > If the IF returns a FALSE result they arent logged in so take them back to the login page, if it returns TRUE, they are logged in, then show them the protect page contents It looks fairly complicated, but once you know the basics, eg session variables, POST variables, IF statements, INCLUDE()s, Database functions and how to MD5 (real easy: md5("some text"); then you can easily do this. dont give up! PHP is a great language to know!
Comment/Reply (w/o sign-up)
jlhaslip
Sep 4 2008, 01:44 PM
Here is a link to a Login script in the tutorial section. http://www.trap17.com/forums/index.php?sho...78&hl=loginHave a look, or use the Search feature, for lots of good information in the Tutorial section here at the Trap17.
Comment/Reply (w/o sign-up)
Nabb
Sep 4 2008, 01:50 PM
If you want each user to have an individual page, it would probably work to create the page when they register. You could create the page separately and then paste it into the registration script as a heredoc (extremely useful these are, you should look into them if you don't know about them!), and have the script open username.php and just write to it. If there's a better way, feel free to say.
Comment/Reply (w/o sign-up)
shadowx
Sep 4 2008, 01:55 PM
Personally i would have it dynamically created from a database. Store details in the DB like the URL to images, the title to use, background colour etc... and load that into a template, the same way they make profile pages eg profile.php?user=shadowx Its just a template loaded with info from a database. But it depends on what you want the page to be like. This method also means you dont have hundreds of files laying around
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : creating, php, login, system, mysql, creating, login, system, login, system
- Os X Mysql Problem
help needed (0)
How To Connect Mysql With Jsp ?
(4) after many i tried to connect to mysql with jsp, its was now successful. but i can connect at
localhost. i wonder why that. can anybody help me ? it was so good if can post complete system. e.g
(login).....
Php Myadmin
can't access mysql database (8) I have installed XAMPP on my computer. Everything works fine, but when I enter PHPMyAdmin I get this
warning: "Your configuration file contains settings (root with no password) that correspond to the
default MySQL privileged account. Your MySQL server is running with this default, is open to
intrusion, and you really should fix this security hole." So I've changed the password to the
root account, but then I couldn't access the mysql databases anymore with PHPMyAdmin (I received
an error that the access was denied). I could change the structures only in php with ....
Resolving Can't Login To Sqlexpress Using Sa Account
When you install VS 2005 or VS 2008 it will eventually install an inst (1) When installing Visual Studio 2005 or Visual Studio 2008, the installer will automatically install
for us one instance of SQL Server 2005 Express. But we can't actually connect the database
without extra tools and we can't login except using Integrated Security. In this article I will
explain how to download extra tools and how to login using sa account (not Windows Authentication
Mode). 1. First download Management Studio Express for SQL Server Express 2005,
http://www.microsoft.com/downloads/details...;displaylang=en this tool will enable you to connect
with....
Mysql Hacks
(10) There are MySQL hacks out there, They can travel from your website to your computers. One of these
are the MySQL injectors. The injection drops your tables and shuts down the program permanently. Be
careful of these hacks, as they can destroy your MySQL related websites, programs, etc.....
The Only Reason I Choose Ms Sql Server Rather Than Mysql
(2) The only reason i choose ms sql server rather than mysql is, MS SQL has more security features!!
MySQL is lacking a lot in my opinions - Lack in wide char, like nvarchar, I developed some
application to support chinese letter, and dont know how to build one in mysql - Lack in t-sql
syntax, like query in query is not fully supported - Does not have today SQL features like BI
support (today really required) And compare MS SQL to MySQL, the only reason why mysql is
favourable is - it is free! Dont u guys agree?....
Need Advice On Setting Up Mysql Database.
I have a huge amount of daily data updates to be inserted. (4) First of all, to get the idea of what I am trying to achieve here, please have a look at my
idea thread, entitled Idea For Using A Cron Job To Grab Daily Travian Map.sql Updates . This gives
a prelude to the project, what it is for, what it is supposed to do, etc. Now, what I need is
specific advice on setting up the mySQL database(s) to implement this idea. There is a useful FAQ
file for how to make use of the map.sql data located on the help.travian.com website, which also
gives an example of the CREATE TABLE instruction that matches the data in the map.sql fi....
The Best Free Php Mysql Blog
any idea (5) Hi everyone Recently i tried to upload a personal blog. as I know a bit of PHP programming I was
looking for a free open source PHP blog. first I tried Wordpress out but there was few problems
that i needed to change php.ini or .htaccess file and also some other PHP settings. as i was trying
it out on a free web host i didn't have access to php.ini. so i have changed it from Wordpress
to bblog , i have installed it successfully and i followed it's safety instruction (deleting
install folder and install.php and CHmod config.php )then i got another problem i ....
Mysql-essential-5.0.51 Installion Problem
please help me.(urgent) (2) Dear friend, please help me. Iam working on php project (matchmaking site). I have downloaded mysql
essensial 5.0.51. When i was installing mysql 5.0.51, i got following error - Error 1901: Error
attempting to read from the source installation database: c:\windows\installer\527ec6.msi What
is solution of this problem ? Iam using windows xp professional version 2002 (service pack 2).
Please post your reply. Iam waiting for your answer. ....
Mysql Query Problems
I need some help or a tutorial? (6) I seem to be having trouble with getting my Query to post my user's ID numbers. CODE //
Make a MySQL Connection mysql_connect("localhost", "user", "password") or die(mysql_error());
mysql_select_db("databasename") or die(mysql_error()); // Retrieve all the data from the members
table $result = mysql_query("SELECT * FROM members WHERE id='$id'") or die(mysql_error());
// store the record of the id table into $row $row = mysql_fetch_array( $result ); // Print out the
contents of the entry echo $row ."; A little information about my table in my da....
Database With Mysql++
getting mySQL++ to work with trap17 (7) Hi, I'm trying to build an online game and figured the easiest way to do the server list would
be to make a mySQL database for it; however, I use the con() command on the IP i get from pinging my
website and I always get an abnormal program termination; however, it will work with the mySQL on my
own machine. The code is below: CODE #include #include #include #include "pass.h"//holds
my password (i program at school) int main(void) { Connection
con("t3jem3_test","64.69.46.210","t3jem3_t3jem",pass); Query query = con.query(); query
Re....
Mysql Datatype Int() Question
Not sure what value to use inside int() (1) Can anyone clarify what the value in int() actually does? CREATE TABLE job_class ( jc_id int(1)
NOT NULL AUTO_INCREMENT PRIMARY KEY, jc_index int(2) NOT NULL, jc_name varchar(20) NOT NULL, jc_type
varchar(20) NOT NULL ); I was under the impression that any integer value used inside a () was
the limit that data-type would have. In the PRIMARY KEY column I was able to add integer values
1-18. I'm kinda confused now If I can add 2 digit integers there then what is the point of
assigning values inside brackets() For the varchar() any number put in there does limit....
Mysql
(7) Hi... One of my hosts hasn´t MySQL but i need to develop a login system so I need to know if it´s
possible to use a MySQL database intalled in another host... If it´s possible can you explain me how
to do it? Thanks in advance....
Loading File Into Blob Fields To Mysql
(1) Hi all! does any know how to load file into blob filed by sql script?....
Mysql And Sql
difference??? (7) I was wondering what is the difference between MySQL and SQL. I was really confused when i planned
to do a project recently. This question has haunted me for a long time. Is it both same?....
Mysql Database Copying
(4) Is there anyway to merge 2 databases? I have an XOOPS and SMF both installed with Fantastico, and
the bridge is not working like the Joomla! one does. (with the seperate db capability) i know how
to transfer all the tables by hand but depending on how much data you have stored in mysql could
take a long time. Take short time!? Help me!....
Sqlserver 2005 - Login Problems
(0) Hi guys, I just installed sqlserver2005 and when i open server management studio and try to connect
I chose SQL server authentication mode it then asks me for a login and password. I have no idea what
this is. Is there a default? or do i need to add a login somewhere. I may have not specified one
when installing. Any ideas? Cheers, Paul....
Installing Mysql On Unix, Linux
(2) Download the latest version of MySQL.Choose the latest stable release and, from the stable release
page, choose the option under "Source Downloads" marked "tarball (.tar.gz)". Download the file into
a directory where files can be created and there is sufficient disk space. A good location is /tmp.
Change directory to this location using: 1. % cd /tmp Note that the % character
should not be typed in; this represents the Linux shell prompt and indicates that the command should
be entered at the shell prompt. 2. Uncompress the package in the new ....
Mysql Tools Database
Opensource sql tools... (1) You can download mysql query web browser on http://www.mysql.com you also can download plugin
there...like conector mysql from visual basic ,java,etc with my sql query tool browser you can make
and maintance youre database sql easily because use gUI interface..!!....
Data Access Pages ?
Help or Assistance with creating a data access page to collect data fr (1) QUOTE Hello All. I'm looking for some advise or assistance with getting a web page/access
page running so that i can have the page online and collect the data live into my database for
Project Management... Currently I'm developing a database using M$ Access, and need to have
staff data enter sales information directly into a web form that can be linked to a database?
I've looked at using a M$ Front page web form with data collected into a .CSV text file and
extracting the data but i need to be able to let the staff review and update the data for each ....
Looking for creating, php, login, system, mysql, creating, login, system, login, system
|
Searching Video's for creating, php, login, system, mysql, creating, login, system, login, system
See Also,
|
advertisement
|
|