Jul 25, 2008

Login System - Let's do it! :)

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming
Pages: 1, 2, 3, 4, 5

free web hosting

Login System - Let's do it! :)

FaLgoR
First, let's do register.php:

<?
include("conn.php"); // create a file with all the database connections

if($do_register){ // if the submit button were clicked
if((!$name) || (!$email) || (!$age) || (!$login) || (!$password) || (!$password2)){
print "You can't let any fields in blank.\n"; // if the user did not put some field
exit;
}
$name = stripslashes($name);
$email = stripslashes($email);
$age = stripslashes($age);
$login = stripslashes($login);
$password = stripslashes($password);
$password2 = stripslashes($password2);

// this is for security reasons

if($password != $password2){ // if passwords didn't match
print "The password and the confirmation are not the same!\n";
exit;
}
$password = md5($password);
mysql_query("INSERT INTO table (name,email,age,login,password) VALUES ('$name','$email',$age,'$login','$password')") or die (mysql_error());
print "Done!\n"; // if its okay, show this message
exit;
} // close the first "if"
?>

<form action="register.php" method="post">
Name: <input type="text" name="name"><br>
Email: <input type="text" name="email"><br>
Age: <input type="text" name="age"><br>
Login: <input type="text" name="login"><br>
Password: <input type="password" name="password"><br>
Password Again: <input type="password" name="password2"><br>
<input type="submit" name="do_register" value="Sumbit">
</form>

And now, login.php:

<?
include("conn.php");

if($do_login){
$login = stripslashes($login); // VERY IMPORTANT FOR SECURITY OF YOUR DATABASE DON'T ERASE IT
$passwd = stripslashes($passwd); // VERY IMPORTANT FOR SECURITY OF YOUR DATABASE DON'T ERASE IT

$check = mysql_query("SELECT * FROM table WHERE login='$login' LIMIT 1;");
$user = mysql_fetch_array($check);

if($user[password] == md5($passwd)){ // if the writed password and the db password are the same...

setcookie("login","$login",time()+360000);
setcookie("pass","$passwd",time()+360000);
// ...set the cookies...
header("Location: userspage.php"); // ...and redirect to restrict page
}else{
print "Login or password incorrects!\n";
exit;
}
}
?>

<form action="login.php" method="post">
Login: <input type="text" name="login"><br>
Passwd: <input type="password" name="passwd">
<input type="submit" name="do_login" value="Log-in!">
</form>

And finally, userspage.php:

<?
if(isset($HTTP_COOKIE_VARS["login"])){
?>

Page contents here

<?
}else{
?>
This page is restrict for registered users only!
<?
}
?>

Here we are, its a very simple login sistem and you can put more things if u want. Maybe latelly I make an administration page and put here to. If u found any problems with this code, tell me and I'll fix! \_

-------------------- Edit -------------------------
Field password2 was in type="text". Changed by type="password".
Field "login" was name="name". This litle mistake caused very much problems!
Sumbit button was wrong. I write type="sumbit". Change by type="submit".

 

 

 


Reply

mizako
Really nice FaLgor.
I was asking myself for a long time how could i set a login system with php and you give the clue.
Somethings about your script:

- What is exactly conn.php and why is it necessary in register.php?

Reply

cragllo
WOW! that is just what I was looking for...
Thank you,
I know you must be fed up of me asking you things all the time,
But there are a few more pages tat would be a good idea..
profile.php to view each members profile it would be something like profile.php?id=2

Also edit.php do thst they can chnage thier info... (excluding their username, they must request for this to happen)

Reply

FaLgoR
hehehe, I start this topic because I saw you were needing it smile.gif
Latelly I'll try to complete this topic by posting an administration page, where you can see the members, edit, delete and send them e-mails. Oh, yes, and a page where the members can see their profiles and edit it, just wait a bit smile.gif

Reply

cragllo
Ok, I will, thanks,

You are the best thing since PHP itself! biggrin.gif

Reply

FaLgoR
mizako conn.php is the file with all the connection setings. Ex.
<?
$host = 'localhost';
$user = 'root';
$pass = 'pass';
$dbname = 'members';

mysql_connect($host,$user,$pass);
mysql_select_db($dbname);
?>

So, when you in include this file on your pages, it will do the connection with the database. If would you have to put this code on all your pages, you would lose loads of time, so using includes() will does your work easilly.

Reply

FaLgoR
Now, let's complete our login sistem. First, lets make an page which will verify if the logged member is an admin. Oh yes, and you will have to put one more columns on the member's table, "level", and put "Member" as the default value.

verify.php:
<?
include("conn.php"); // include page with the database connection
$cookie = $HTTP_COOKIE_VARS; // to reduce the var's name ohmy.gif)

if($cookie[login] && $cookie[pass]){

$login = $cookie[login];
$pass = $cookie[pass];

$usrquery = mysql_query("SELECT * FROM members WHERE nick='$login' AND password='$pass';") or die (mysql_error()); // search for the user
$user = mysql_fetch_array($usrquery);

if($user[level] != 'Admin')
header("Location: notfound.htm"); // if the user is not an admin, redirect to an error page
}
?>

admin.php:
<?
include("verify.php"); // it will verify if the user is an admin
?>
<!-- Here, the table with all the members -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form method="post" action="members.php">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr bgcolor="#333333">
<th width="6%" class="header"><font size="1">Editar</font></th>
<th width="1%" class="header"><font size="1">ID</font></th>
<th width="24%" class="header"><font size="1">Name</font></th>
<th width="13%" class="header"><font size="1">Age</font></th>
<th width="40%" class="header"><font size="1">E-Mail</font></th>
<th width="11%" class="header"><font size="1">Details...</font></th>
</tr>
<?
$query = mysql_query("SELECT * FROM members ORDER BY id;");
if(!mysql_fetch_array($query)) // If there is no members
print "<tr><td align=\"center\" colspan=\"7\"><font color=\"#FFFFFF\" size=\"2\"><b>Sorry, there is no members registered.</b></font></td></tr>\n";
// Show you a message

while($profiles = mysql_fetch_array($query))
{
?>
<tr bgcolor="#666666">
<td> <div align="center"><input type="checkbox" name="id[]" value="<?=$profiles[id]?>"></div></td>
<td> <div align="center"><?=$profiles[id]?></div></td>
<td> <div align="center"><?=$profiles[name]?></div></td>
<td> <div align="center"><?=$profiles[age]?></div></td>
<td> <div align="center"><?=$profiles[email]?></div></td>
<td> <div align="center"><a href="profiles.php?op=edit&id=<?=$profiles[id]?>" target="_blank">More info...</a></div></td>
</tr>
<?
}
?>
</table>
</td>
</tr>
</table>
</form>

Done, now, profiles.php (used to see and edit member information):
<?
include("verify.php"); // always put this page, or everybody would have access to this page

function Update (&$member, $table, $data)
{
global $id;
$items = explode(" ",$data);
$update = "";
$i = 0;
while ($tmp = $items[$i++])
{
$data = $member[$tmp];
if (is_numeric($data))
$update .= "$tmp=$data";
else
{
sqlQuotes($data);
$update .= "$tmp='$data'";
}
if ($items[$i]) $update .= ",";
}
mysql_query("UPDATE $table SET $update WHERE id=$member[id];");

}
// this function is really nice!!

switch($op){
case 'edit': // if you're trying to edit/see info
$profile = mysql_fetch_array(mysql_query("SELECT * FROM members WHERE id=$id;")); // save the user informations on an variable
?>
<!-- now, lets show an table -->
<form action="profiles.php?op=doedit&memberid=<?=$profile[id]?>" method="post">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="25%"><font color="#FFFFFF">ID</font></td>
<td width="75%"><input name="id" type="text" id="id" value="<?=$profile[id]?>" size="2"></td>
</tr>
<tr>
<td><font color="#FFFFFF">Name</font></td>
<td><input name="name" type="text" id="nome" value="<?=$profile[name]?>" maxlength="32"></td>
</tr>
<tr>
<td><font color="#FFFFFF">Age</font></td>
<td><input name="age" type="text" value="<?=$profile[age]?>" maxlength="32"></td>
</tr>
<tr>
<td><font color="#FFFFFF">Country</font></td>
<td><input name="country" type="text" id="estado" value="<?=$profile[country]?>" size="2" maxlength="2"></td>
</tr>
<tr>
<td><font color="#FFFFFF">City</font></td>
<td><input name="city" type="text" id="cidade" value="<?=$profile[city]?>"></td>
</tr>
<tr>
<td><font color="#FFFFFF">ICQ</font></td>
<td><input name="icq" type="text" id="icq" value="<?=$profile[icq]?>"></td>
</tr>
<tr>
<td height="22"><font color="#FFFFFF">MSN</font></td>
<td><input name="msn" type="text" id="msn" value="<?=$profile[msn]?>"></td>
</tr>
<tr>
<td><font color="#FFFFFF">HP</font></td>
<td><input name="hp" type="text" id="hp" value="<?=$profile[hp]?>" size="40"></td>
</tr>
<tr>
<td><font color="#FFFFFF">E-mail</font></td>
<td><input name="email" type="text" id="email" value="<?=$profile[email]?>" maxlength="60"></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" value="Save">
&nbsp;
<input type="reset" value="Reset">
</div></td>
</tr>
</table>
</form>
<?
break;
case 'doedit':
if(!$memberid)
return;

$profile[name] = $name;
$profile[age] = $age;
$profile[country] = $country;
$profile[city] = $city;
$profile[icq] = $icq;
$profile[msn] = $msn;
$profile[hp] = $hp;
$profile[email] = $email;

Update($profile,"members","name age country city icq msn hp email");
mysql_query("UPDATE members SET id=$id WHERE id=$memberid;"); // update user's id

EndNow("Details saved!<br><br><a href=\"admin.php\">Back</a>");

break;
}
?>

Done biggrin.gif! I did not tested this script, so, if there is something wrong tell me. But I think it will give you some idea that how to do an administration page! Next post I'll show you how to do an page where the members can change their details (but I think, after saw this post, you will not have problems to do it). I hope I have helped you all! =D

 

 

 


Reply

cragllo
You missed out the </form> near the end of admin.php


And I added aim (AOL instant messenger) to profiles.php and also added the other fields to the database...


EDIT: error in login.php

QUOTE
Warning: Cannot modify header information - headers already sent by (output started at /home/cragllo/public_html/new/login.php:8) in /home/cragllo/public_html/new/login.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /home/cragllo/public_html/new/login.php:8) in /home/cragllo/public_html/new/login.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home/cragllo/public_html/new/login.php:8) in /home/cragllo/public_html/new/login.php on line 33


code on those lines: 29 to 39
CODE
if($check){ // if $check is true...
setcookie("login","$login",time()+360000);
setcookie("pass","$passwd",time()+360000);
// ...set the cookies...
header("Location: userspage.php"); // ...and redirect to restrict page
}else{
print "Login or password incorrects!\n";
exit;
}
}
?>

Reply

FaLgoR
please, copy line 8 here to.

Reply

cragllo
lines 5-10
CODE
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../style.css" rel="stylesheet" type="text/css">
<title>SPONK INDUSTRIES - LOGIN</title>
<style type="text/css">
<!--
.style1 {


Is there any way to stop Dreamweaver MX 2004 putting in styles automatically, all the font sizes are pixels now sad.gif

Reply

Latest Entries

FaLgoR
cool! =)
You know, if u find problems just post here or PM me.

Reply

cragllo
YES! My fault, I didnt think you updated that page... wink.gif

ALL working now, its just my other site, thats a fault of my host, (Not Trap17) I think...

Ill update those files and upload them... then ill post here if I cant find a problem...

Reply

FaLgoR
md5 is an encrypted code. just check the database. If you see: yourpassword its wrong. If u see gt5rgtregtrhr897hterh9treh7trehtrhtr98 it's right! :D~
i've changed the registration page because it was not encripting the passwords, so maybe u register with the old page and its not encripting. Try to register again with this new registration code.

P.S. dont kick yourself because u did never work with mysql, nobody were born knowing it :/

\_

Reply

Zaideu
QUOTE(cragllo @ Jan 17 2005, 08:05 PM)
I have never workes with mySQL in the past, what do you mean by 'md5'????

Sorry for being such a n00b!
*


It can hash a password wink.gif (azerty = 16vfd54rz8g4esh68rthr (something like it biggrin.gif ))

Reply

cragllo
I have never workes with mySQL in the past, what do you mean by 'md5'????

Sorry for being such a n00b!

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3, 4, 5
Similar Topics

Keywords : login, system, lets

  1. One Login Account At One Time
    (3)
  2. I Am A Nub At This
    so lets see where i can learn php (3)
    ok i am going to be starting my site soon, i want to use phpnuke 8.1 and i want to beable to edit
    the files if need be so where can i go to learn all about php scripting. is there any free online
    books and so on. my site will mainly be about my clan on starcraft, supreme commander and so to be
    starcraft II. any help on this subject would be great. i just got some books on Visual Basic 6 and
    C++ 6 and also a begginers guide to programing but i know that has almost nothing to do with website
    stuff. i also know alittle of html. thanks any1....
  3. Html Site With Login
    Is it possible? (2)
    Hello. I´m building my own site and I need some help... Is it possible to use a login sistem in php
    and mysql database in a html site? ....
  4. Login System
    (6)
    i am designing a site for my alliance for the game Dark Throne. and i want some content to be
    availabe to members of the alliance only, and other content to be available to people with a certain
    rank within the alliance. i know this should be somewhat simple, but i am not that sure how to do
    it. my idea for the website is just have basic info about the alliance available to everyone, then
    news about the alliance and member lists and other things like that available to every alliance
    member, then things such as the strike team, diplomat team, and special areas like that,....
  5. Php Login Script
    (1)
    I'm looking for a good php login script. I would like one where it pops up. like http-auth. but
    with out the data base. I would also like for it to have a log out fuction.....
  6. Creating A Login Box That Links To My Phpbb Forum
    Have my phpBB Forum Intergrated with my Website (4)
    Can someone please give me a code that I can use to put a login box on my website, that will login a
    user into my phpBB Forum? Sort of like Having my phpBB Forum Intergrated with my Website? Thank you
    so much if you can! /angel.gif" style="vertical-align:middle" emoid=":angel:" border="0"
    alt="angel.gif" /> Ex. ....
  7. Windows Login Credentials
    (0)
    On an intranet I'm running php. apache and mysql. We use Windows logins. I have a form that
    users can submit. This will require a login. I would prefer to use the windows login and passwords.
    can I link to the windows authentication? The issue I see is when a user changes the password. My
    link would need to update the password....
  8. Is This A Good Script?
    A login script (9)
    Okay, I am trying to password one page of my website. I need confirmation if this is a safe code or
    not. The whole code is on the page I'm protecting. CODE <?php
    include('header.php') ?> <?php // Define your username and password
    $username = "THE_USERNAME"; $password = "THE_PASSWORD"; if
    ($_POST['txtUsername'] != $username ||
    $_POST['txtPassword'] != $password) { ?>
    <h1>Login</h1> <form name="form" method=&....
  9. Phpmyadmin Login Problem!
    (1)
    I have easyphp. But i can not log when i go to phpmyadmin. I directly enter the page. But i think i
    should normally have to log in before enter that page. What should i do to configure the access to
    phpmyadmin? Thank for help....
  10. Login System Help...
    (3)
    I know, nol tried to use this script.. and erm.. i think failed.. but i installed it all good, works
    fine, UNTILL........ i tried to add a new option to the registration. Thhis is the url to the
    site.. where the dl is.. http://evolt.org/PHP-Login-System-with-Adm...nts_per_page=50 I would
    really appreciate it if somebody could add, in all the php files properly a new registration thing,
    called "name" where they write their name in so i know it for future reference. if somebody could
    get that to me i would really appreciate it. ALSO... if you can't do that, or jus....
  11. <?php ?> Sloppy Login Script
    Sloppy login script, couse i used @ on one string (12)
    Here's a sloppy 3 files login script. First file is Login file that looks like this login.php
    CODE <form action="check.php" method="post"> Username: <input
    type="text" name="username1"><br /> Password: <input
    type="password" name="password1"><br /> <input type="submit"
    value="Login"> </form> Basicly that is HTML form that's used for input
    Second part of the script is the check.php that we call from our login.php form QUOTE ....
  12. New Arisen Site Problem
    Nettek Login Trouble (2)
    Okay, so I installed Nettek and got everything set up. But every time I try and login, it says
    it's incorrect. I've gone into the Database and gotten the password and since it was
    simple, put them in and had tried but with no success. I tried changing the password but I still
    couldn't get in. I tried adding another login and it still didn't work. I have no idea
    what's wrong and I need some help.....
  13. What Does This Do?
    $ban = ($data->login) ? $lban : $iban; (4)
    I'm correcting a 'few' php-files for a friend, but I got this line of code: CODE
    $ban = ($data->login) ? $lban : $iban; and I don't know
    what it does xD Could someone please explain me what this line does? Thanks....
  14. Help Improving My Login Script Code
    The code works okay...just not the authorization part (4)
    I have developed a piece of code /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> that is going to work as my login script for my website. I need some help making
    improvements and creating additional features. Here is my code: CODE <?php
    session_start(); $name = $_POST['username']; $password =
    $_POST['password']; $con =
    mysql_connect("localhost","myDbUser","myDbPassword");
        if(!$con)         {         die(&#....
  15. .htaccess-style Login System And Php
    (13)
    I am trying to make a login system that looks and works like .htaccess using sessions, with a PHP
    script that detects the username used. Let's say I log on with the username "Amezis" and
    correct password. Then I want a PHP (or any other kind of script) to create a cookie or session
    which stores the user name, so it could be possible to store it in a variable as long as the user is
    logged in, and so it can be printed when needed. Basically, this is what I want the script to do:
    CODE /* This file can only be executed after logging in with the htaccess-style login....
  16. Login Script
    (11)
    I am using the following code as a login page. I try to start by checking if a session already
    exists so that people don't have to login each time. The problem is that it is just being
    ignored. How do I check if a session is already set? CODE if
    (isset($_SESSION['loginname'])) { print('you were
    already logged in'); } else { if (submit) {
      list($users,$passwords,$accounttypes)=GetCurrentUsers($user,$
    password,$accounttype);   $nologin=1;   for (&....
  17. Sessions And Login
    Without Cookies (5)
    Hi, I have a login script i made using PHP sessions and MySQL. It works fine but there is a
    problem. As you know Sessions are stored in Cookies by PHP. So if someone has switched Cookies off
    then no sessions will work. How to solve this problem ? Please help me. Thanks and have a good
    day. ....
  18. Automatic Login Using Curl
    (1)
    If you'are lazy people like me. This script may help u. This script is to automated our login to
    some site. You must have cURL installed to use this script. CODE <?php // INIT CURL
    $ch = curl_init(); // SET URL FOR THE POST FORM LOGIN curl_setopt($ch,
    CURLOPT_URL, 'http://www.external-site.com/Members/Login.php'); // ENABLE HTTP POST
    curl_setopt ($ch, CURLOPT_POST, 1); // SET POST PARAMETERS : FORM VALUES FOR EACH
    FIELD curl_setopt ($ch, CURLOPT_POSTFIELDS, 'fieldname1=fieldvalue1&fieldna....
  19. "grand" Login System?
    To Forums, Chat, and Site (7)
    Major problem I got here. A site at which I am employed as PHP Coder (privet-drive.com), needs a
    "grand" login. The login needs to be able to login them into the forums, the chat, and the site, all
    at the SAME time! The big problem is, the chat is located on another website (potterchat.net),
    and the forums are IPB and not PHPBB. Any comments, or some tips on how I am to go about this? I am
    freaking out, and any advice at all would be nice! Thanks in advanced!....
  20. Login / Authetication System Using Database
    adding information (4)
    Is there any way to make such database where I can write like name and passwords.. Then make an
    login box, and when somebody trys to acces the login he needs to write the name and password.. Then
    it is verifyed if is there such name and password and if it is then acces the page.. I think there
    is posible something like that with MySQL (db).. but can anybody say me a script or way to make
    something like that? Alredy thanks......
  21. Customizing Login Script
    please help anyone good in PHP.. (8)
    On my main site i have this login box: Click here! ... And I want to change the look of it in
    new adress but I have only things can be get from that adres.. I put that login box (new) in my
    website and changed the page that opens but when you try to login with wrong username or password..
    It opens like you typed right usernam and password.. So I need to make it work like normal login
    box but there can be logen in with only right username and password.. I think there need to be added
    some cookies or something to that page.. So someone who is good in PHP please help....
  22. Problem With A Login Script
    (10)
    I'm making a simple login script, but it doesn't seem to work like I want. The error
    messages work, but if I actually write the right username and password, it won't work.
    Here's the message I get: QUOTE Warning : Cannot modify header information - headers
    already sent by (output started at /home/ngnorge/public_html/fsm/index.php:7) in
    /home/ngnorge/public_html/fsm/logginn/login.php on line 9 Here's the script: login.php
    CODE <?php include('config.php'); if($action ==
    "submit"){ if((....
  23. Login
    (4)
    I have a mysql database with 99 people. The first column on db is call id and assigns a diferent 4
    digit number to each person. Second column contains each person`s complete name.... someone tells
    me i need an adittional user column to asign a username to each person...(cause i want a login page)
    but since i already have a different name and a different id for everybody, why would i need a such
    column? can someone please tell me how can i use this 2 columns (name and id) so they can type
    their complete 4 digit id and just part of their name to enter through a login p....
  24. User Login System With Setcookies
    (13)
    a friend of mine is quite good at php and told me not to use sessions and to use setcookie im not
    sure how to use setcookie to make a user authentication system and was wondering if anyone here know
    a tutorial on how to do it....
  25. Php G-mail Login
    Compatable on all browsers (8)
    I fount a PHP G-mail login script to login to your g-mail using any browser. Even IE1, I installed
    it on my site at http://www.gmail.mbd5882.trap17.com/ I tested it myself, Its safe. gmail-lite is
    an html-only interface of GMail. It was develope it with PDA browser (mostly Netfront) in mind, it
    should be workable with any browser on Earth (e.g. lynx, ie3, netscape4, opera5. The only tags being
    used are A, B, FORM, H1, I, INPUT, P, SELECT, TEXTAREA, TABLE, TR, and TD (and META and STYLE in
    HEAD). It alows you to send 10 invites at once and is fast. It uses cookies i, An....
  26. Php Sessions
    Multiple users using the same login (2)
    Hi, I'm realtively new to PHP and I'm considering creating some login functionality.
    However I want a group of users to use the same loginname and password. They will be loggin infrom
    different machines. The users will know they are sharing the account. Can anyone give me an idea
    of what kind of effect this might have on my sessions? Will it create any odd hiccups or other
    strange things?....
  27. Php Login Script
    Removing the login field once the user logs in (18)
    Hey everyone. I have a login script that i know works. My question is that on my main page, it have
    a form to allow the user to log in. What i want it to do is that once the user logs in, the form
    disappears and the users data (aka username) is displayed where the form was. At the moment i cant
    get it to work. Below is my code. CODE <div id="loginMenu">  <?php    if
    ($logged_in == 1)    {  ?>     <!-- User information -->  <?php
        }//if     else     {  ?>     <form action="<?php echo &....
  28. Login Not Working (uses Mysql)
    (11)
    I don't know what's going wrong here, but it's probably a typo: CODE $iusername
    = $_POST['username']; $ipassword =
    stripslashes($_POST['password']); include "opendatabase.php";
    opendatabase(); $userrow = mysql_query("SELECT * FROM `users` WHERE
    `username`='$iusername' LIMIT 1;"); $userarr =
    mysql_fetch_array($userrow); $ipassword = md5($ipassword);
    if($ipassword != $userarr[3]....
  29. Uploading Files
    Let's do it! :) (0)
    Here, I'll show you how to upload files to the server by your browser. upload.php: CODE
    <? $sizelimit = "280000"; // file size limit $patch =
    "/home/yoursite/public_html/files"; // patch to where the uploaded files will be saved -
    change it if($file != ""){ // if $file is set $file_ext =
    explode(".",$file_name); // check for the extension if($file_size
    > $sizelimit) // check if file size is bigger than the limit die("This file is
    too big."&....

    1. Looking for login, system, lets

Searching Video's for login, system, lets
advertisement



Login System - Let's do it! :)



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE