Nov 21, 2009
Pages: 1, 2

A Php Loginscript For Your Site - For everybody

free web hosting

Read Latest Entries..: (Post #19) by neokid on Aug 27 2005, 01:51 AM.
Yay, now I can make a email service site for my domain, thanks to you!
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Tutorials

A Php Loginscript For Your Site - For everybody

sachavdk
Many people want to make logins to their site.
The easiest way to do this is using PHP. I will describe here all steps creating one. You can copy and paste the code and save it as the name of the file

given above the code. Save everything in the same directory.
NOTE: However the code can be copied its still no basic php anymore. If you have questions you can ask them but a little knowledge of php

is useful.

First of all we need to make a login form. This can be an htmlpage. We are going to ask the user for his username and his password.

File is named: "login.html"
CODE
<html>
<head><title>My website</title></head>
<body>
<form action="login.php" method="post">
<!-- action will be the url where the form is posted to, it can be a page (http://yourdomain/login.php) or a page with variables

(http://yourdomain/?page=login) for examle.
The method is the way the form is submitted. Using GET the form will be submitted using the addressbar and all values will be visible. Since we're sending a

password this is defenetly not what we want. That's why we're going to use POST. Post sends the form in an "invisible" way. This means the input can not be

viewed by the user. This way of sending can still be hacked but in your case it is probably not important enough to do so. -->
<h1>Login</h1>
Username: <input type="textbox" name="username"><br>
Password: <input type="password" name="password"><br>
<input type="submit" value="Login!" name="submit"><br>
No an account yet? <a href="register.html">Register</a>
</form>
</body>
</html>


That was pretty easy. Now I'm expecting you have your database set up (I use MySQL with these scripts). If not do this now.
You will need a table named "tblusers" with fields:
* ID, Integer, Null, auto_increment, primary key
* Username, Text
* Password, Text
In the example I will use the following script included in every script so I will have to declare only once my database login settings. Change the settings

below to yours.

Page is named: "DatabaseConfig.php"
CODE
<?php // every var gets a prefix "db_" do declare its about the database connection later
$db_username="username"; //database username
$db_password="password"; //database password
$db_host="localhost"; //host of your database
$db_database="dbmylogin"; //database name
$db_table="tblusers"; // tablename
$db_conn = mysql_connect($db_host,$db_username,$db_password) or die (mysql_error());
$db_conn = @mysql_select_db($db_database,$db_conn) or die (mysql_error()); // using the "@" gives a secure connection
?>


Thats it for the database. You see this makes things a lot easier.

People want to register on your site before they can login. Here's the registration form:

Page is named: "register.html"
CODE
<html>
<head><title>My website - Registration</title></head>
<body>
<form action="registration.php" method="post">
<h1>Registration</h1>
Desired username: <input type="textbox" name="username"><br>
Desired password: <input type="password" name="password"><br>
<input type="submit" value="Register!" name="submit">
<input type="button" value="Login" onClick="javascript:window.location='login.html'">
</form>
</body>
</html>


That's the registration form.
Now we have the registration script wich is going to validate username if it exists and if not, register it.
Page is named: "registration.php"
CODE
<?php
session_start();
if (!isset($_POST["submit"])) // checks wheter the page is called using the registration form
{
// it is not called using the registration form
header("Location:register.html"); // the script sends the user to the registration page
} else {
// it is called using the registration form
if ($_POST["username"] == NULL || $_POST["password"] == NULL) // check wheter both username and password are filled
{
// one of the two is not filled
echo "<font color=\"red\">Not all fields were filled. Please go <a href=\"javascript:history.back(1)\">back</a> and fill them</font>";
} else {
// they are both filled, check wheter the username exists in the database
// remember we made "DatabaseConfig.php"? Here it will be included so connection is made with the database.
include("DatabaseConfig.php"); // now its simple, otherwise we had to make connection everytime with much more code.
$usernameexists = mysql_query("SELECT ID FROM tblusers WHERE username='".$_POST["username"]."'") or die (mysql_error());
if (mysql_num_rows($usernameexists) != 0)
{
 // user exists
 echo "<font color=\"red\">User exists. Please go <a href=\"javascript:history.back(1)\">back</a> and chose another username.</font>";
} else {
 // user doesn't exists
 $add_user = mysql_query("INSERT INTO tblusers (username,password) VALUES ('".$_POST["username"]."','".$_POST["password"]."')");
 if ($add_user)
 {
  // user is succesfully added
  echo "<font color=\"red\">You are succesfully registered. You can now <a

href=\"login.html\">login</a></font>";
 } else {
  // error occurd
  echo "<font color=\"red\">An error occurd. Please go <a href=\"javascript:history.back(1)\">back</a> and try again.</font>";
 }
}
// don't forget to close the database connection when you don't need it anymore
mysql_close();
}
}
?>


End of registrationscript

Loginscript
Page is named: "login.php"
CODE
<?php
session_start();
if (!isset($_POST["submit"])) // checks wheter the page is called using the login form
{
// it is not called using the registration form
header("Location:login.html"); // the script sends the user to the registration page
} else {
// login form is used, continue with login
if ($_POST["username"] == NULL || $_POST["password"] == NULL) // check wheter both username and password are filled
{
  // one of the two is not filled
  echo "<font color=\"red\">Not all fields were filled. Please go <a href=\"login.html\">back</a> and fill them</font>";
} else {
  // they are both filled, check wheter the username and password exists in the database, password must be for the same user
  // remember we made "DatabaseConfig.php"? Here it will be included so connection is made with the database.
  include("DatabaseConfig.php"); // now its simple, otherwise we had to make connection everytime with much more code.
  $usernameexists = mysql_query("SELECT ID FROM tblusers WHERE username='".$_POST["username"]."' && password='".$_POST["password"]."'") or die

(mysql_error());
if (mysql_num_rows($usernameexists) != 0)
{
 // user exists
 $_SESSION["mywebsite_userid"] = mysql_result($usernameexists,'',"ID");
 ?>
  <font color="red">You are successfully logged in.</font><br>
  Go to the secret page: <a href="secret.php">Secret page</a>
 <?php
} else {
 // user doesn't exists
 echo "<font color=\"red\">Wrong combination username/password. <a href=\"login.html\">Try login again</a> or <a

href=\"register.html\">register</a></font>";
}
// don't forget to close the database connection when you don't need it anymore
mysql_close();
}
}
?>

that's the loginscript

Now the last script we need is the one who takes care on the secured pages to see if you are logged in.

And this is the script to check if you're logged in:
It's named "checklogged.php"
CODE
<?php
session_start();
if (!isset($_SESSION["mywebsite_userid"]))
{
// visitor is not logged in
echo "You need to be logged in to see this page. <a href=\"login.html\">Login</a> or <a href=\"register.html\">register an account</a></font>";
die();
}
echo "<a href=\"logout.php\">Logout</a><br>";
?>


You use following piece of code in every page you want to secure a page. Just set it in the very top of your script. EVERY PAGE YOU WANT TO SECURE MUST BE A

PHP SCRIPT!!!
CODE
<?php
include("checklogged.php");
?>


And ofcourse we need a logout script:
Page is named: "logout.php"
CODE
<?php
session_destroy();
echo "You are logged out. <a href=\"login.html\">Login</a>."
echo $_SESSION["mywebsite_userid"];
?>


Now that's all. Since I don't know what problems you might have just put them here.

PS: for people who don't know php, you can't test it on you pc unless you have a server running on it. But you can test it on trap17. But nevertheless you will have to create you database. You can do that accessing your control panel and go to "MySQL Databases" and create one there. I'm not used to it on trap17 but I think there are people who will help you with that using this topic.
The structure and the name of the table you find some higher on this page.
Of course then you have to edit the DatabaseConfig.php script with your settings.

PPS: important is that posting this in this topic the structure of the code when you past it isn't correct anymore. If you want to use the script simply download the attachment. It's my working script.

 

 

 


Comment/Reply (w/o sign-up)

Saint_Michael
good but can i add something i did some modifying for the ipb forum login scripts its just a simple way to have people login on o the forums with out need to login through them

QUOTE
<script language='JavaScript' type="text/javascript">
<!--
function ValidateForm() {
var Check = 0;
if (document.LOGIN.UserName.value == '') { Check = 1; }
if (document.LOGIN.PassWord.value == '') { Check = 1; }
if (Check == 1) {
  alert("Please enter your name and password before continuing");
  return false;
} else {
  document.LOGIN.submit.disabled = true;
  return true;
}
}
//-->
</script>
[color]<form action="http://www.trap17.com/forums/index.php?act=Login&amp;CODE=01" method="post" name="LOGIN" onsubmit="return ValidateForm()">
<input type="hidden" name="referer" value="http://www.trap17.com/forums/index.php?amp;act=Login&amp;CODE=01" />[/color]
<div class="borderwrap">
<div class="row1">
  <div class="maintitle"><img src='style_images/vizion/nav_m.gif' border='0'  alt='&gt;' width='8' height='8' />&nbsp;Log In to Trap17.com</div>
  <table cellspacing="1">
  <tr>
    <td width="60%" valign="top">
      <table cellspacing="1">
      <tr><td width="50%"><b>Enter your user name</b></td>
        <td width="50%"><input type="text" size="10" maxlength="64" name="UserName" class="forminput" /></td>      </tr>
      <tr>
        <td width="50%"><b>Enter your password</b></td>
        <td width="50%"><input type="password" size="10" name="PassWord" class="forminput" /></td>
      </tr>
      </table>
      <table cellspacing="1">
      <tr>
        <td width="10%"><input type="checkbox" name="CookieDate" value="1" checked="checked" /></td>
        <td width="90%"><b>Remember me?</b><br /><span class="desc">This is not recommended for shared computers</span></td>
      </tr>
      <tr>
        <td width="10%"><input type="checkbox" name="Privacy" value="1" /></td>
        <td width="90%"><b>Log in as invisible</b><br /><span class="desc">Don't add me to the active users list</span></td>
      </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="formbuttonrow" colspan="2"><input class="button" type="submit" name="submit" value="Log me in" /></td>
  </tr>
 
  </table>
  </div>
</div>
</form>


the olny thing you have to do is change the url info colored in red, i havn't test it to see if the cookies work but you can successfully login.

 

 

 


Comment/Reply (w/o sign-up)

thebluekirby
YES!!! This is like....the exact script I was looking for!!! Thank you SOO much for posting this!!!

Comment/Reply (w/o sign-up)

sachavdk
QUOTE(Saint_Michael @ Jul 22 2005, 10:46 PM)
good but can i add something i did some modifying for the ipb forum login scripts its just a simple way to have people login on o the forums with out need to login through them
the olny thing you have to do is change the url info colored in red, i havn't test it to see if the cookies work but you can successfully login.
*


I did test it neither tongue.gif but it looks great. Though I won't use it because I wrote my own forum wink.gif and I do not use ipb nor phpBB smile.gif .
Nevertheless people who use ipb will appreciate it I think.

Comment/Reply (w/o sign-up)

Artanis
Hmm thanks i been looking for login for php and html on google but they jsut give ma useless code that doesnt work.

Comment/Reply (w/o sign-up)

cmatcmextra
Thanks so much for this sachavdk. This is exactly the kind of script I've been hunting the web for smile.gif

Comment/Reply (w/o sign-up)

Saint_Michael
actually it should be universal, all your doing is changing the url info, so it shouold work for all forums.

Comment/Reply (w/o sign-up)

skynet
Wow thanks, this is just what I need biggrin.gif Been looking for this for a while smile.gif never tought I will found here.

Comment/Reply (w/o sign-up)

rvovk
Looking very nice, I need to find email script also. Thanx for nice tutorial.

Comment/Reply (w/o sign-up)

RGPHNX
HI all,
Nice tutorial sachavdk ! biggrin.gif
QUESTION:
Can these scripts be modified to accomplish the following:
> the user must provide a "valid" e-mail address to register
> the e-mail address is automatically checked & error messages are generated if the e-mail address is not "legit" and regidstration is denied.
> the e-mail address is added to the database.
Thanks to anybody for ideas.
RGPHNX

Comment/Reply (w/o sign-up)

Latest Entries

neokid
Yay, now I can make a email service site for my domain, thanks to you!

Comment/Reply (w/o sign-up)

sachavdk
QUOTE(Brionne @ Aug 17 2005, 08:30 AM)
Could you by any chance list something this an be used for?
And it looks extremely long, is there anyway to shorten it up a bit?
*


your first question is to yourself. You can use the script to make a login for your site, a site you are making for somebody else, etc... It gives a little more control over your site (people have to login to post a reaction on a news system, to post your gb (ie with a portalsite),.... whatever you like

For your second one, the answer is simple: "probably yes", but not much. This loginscript is a really basic one and doesn't offer very much protection of your data, but it's safe enough for a personal site. To give you an example; a friend of mine works with a company who writes websites. The average loginscript-length is 10000 lines of code. It's not written by one person, but I think in compare mine is really short and simple smile.gif

Comment/Reply (w/o sign-up)

Brionne
Could you by any chance list something this an be used for?
And it looks extremely long, is there anyway to shorten it up a bit?

Comment/Reply (w/o sign-up)

Aevum Decessus
QUOTE(sachavdk @ Aug 16 2005, 07:29 AM)

For your second question, the value from the selectresult will be stored in $_POST["AAAA"], and it will contain "life" or "death".
Another thing. To use php you need a server running so I expect you have. But for which reason are you using the absolute path of your script as action? Place everything in your server folder and just begin from the path where this form is located. That will be enough wink.gif


Anyway you people might think different smile.gif
*


yeah, the reason for the absolute path is using dreamweaver and drag and drop. thanks for pointing that out gotta fix it, and thanks for all of your help, Gotta go do some coding now

Comment/Reply (w/o sign-up)

sachavdk
@Aevum Decessus:
You forgot to close your <select> with the </select> tag. It's not obligated but some browsers (like IE) aren't that strict with html and can cause display errors. (Firefox shouldn't give problems with this as far as I know)
So here's the correct form:
CODE
<form name="registration" action="file:///C|/Documents%20and%20Settings/Administrator.MASTER/Desktop/Loginscript/registration.php" method="post">
<h1>Create your account</h1>
Valid E-mail address: <input type="text" size ="30" name="email">
Verify E-mail address: <input type="text" size="30" name="e-mail2"
Desired username: <input type="text" name="username"><br>
Desired password: <input type="password" name="password">
Confirm password: <input type="password" name="password2">
<br>
Master: XXXX
<select name='AAAA' style='border: 1px solid #FFFFFF; background-color: #000000; color: white'>
<option value="life">Aevum</option>
<option value="death">Decessus</option>
</select>
<input type="submit" value="Register!" name="submit">
<input type="button" value="Login" onClick="javascript:window.location='login.html'">
</form>

For your second question, the value from the selectresult will be stored in $_POST["AAAA"], and it will contain "life" or "death".
Another thing. To use php you need a server running so I expect you have. But for which reason are you using the absolute path of your script as action? Place everything in your server folder and just begin from the path where this form is located. That will be enough wink.gif

@el_exorcista:
encryption is indeed a something that I forgot. But I "forgot" it deliberatly. Nevertheless if you use the md5 encryption method guests aren't able to request their password if they have forgotten it since md5 is a one-way encryption method. If you want to decrypt the password you'd better write one yourself.
It still remains extremely difficult to write one that is somewhat safe and above all one that works in two ways.
For people who want to use encryption, md5() is a good opportunity but when you want to decrypt you can also use base64_encode() and base64_decode(). For a personal site encryption to transfer the data is enough. I don't think with a (My)(MS)(PostGre)SQL database it will be a serious damage if you don't use encryption (it probably won't be attacked). That's why I advise the base64_encode() method.
Encryption is only very important for a professional site for companies etc. who mostly use Oracle.

Anyway you people might think different smile.gif

Comment/Reply (w/o sign-up)



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*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : php, loginscript, site

  1. [aef] Most Recent Topics Listing Mod
    on your Web-site pages (2)
  2. How To Make An Ultimate Game List.
    If you're making a site on video games or such. (0)
    Hello. I am BuBBaG. You can call me Bubba for short. I'm going to show you how to make an
    Ultimate Game List. First off, we need to make a database, we are going to call this database
    `my_db`, leave out the `'s. Inside that database we will need to create a table called
    `ugl'(Ultimate Game List, duh). To make the table, simply enter this in the Syntax. CODE
    CREATE TABLE ugl ( System char(50), Game char(50), ) In the above code, it is stating we are
    creating a table called ugl, with two columns, System, and Game. Next, we will need to make a form,
    t....
  3. Simple Stylesheet Tutorial
    Stylesheet embedded in your site. (2)
    Hi - ill show you how to make a simple style sheet that will be embedded into your site. OK make
    sure your site is set up already (like the standard tags) To start and end off a stylesheet you
    need to do the following CODE Ok lets start CODE p { font-family: "Tahoma";
    font-size: 9; color: "red"; } So when you come to put in CODE Hi! The text will
    appear red and will be in Tahoma. I will now just show you how to change the background colour of
    the text. CODE span.hilightred {background-color: "red";} span.hilightblue {backgrou....
  4. How To Set Up A Bookmarking System On Wii
    Use your favorite social bookmarking site. (0)
    This is a simple tutorial on a way to set up a bookmarking system on your Wii with greater stroage
    than the Favorites. It is more complicated than the Favorites and requires manual URL typing. Well
    let's dive on in. Items Required Nintendo Wii Internet Channel 3 Empty Favorites Internet
    Connection An account on a social bookmarking site I will be using delicious as an example.
    delicious Ok, if you do not have an account, read on. If you do have an account, go to the
    {account} section. Ok, first you need to register an account. This can be done by clicki....
  5. Create A Google Seach Result Page Embed Within Your Site Page.
    (12)
    Create a google seach result page embed within your site page. It is easier to create
    web page that embeded the google search result in it. The first step is to go to google apply an
    account for the google ad-sense. After that login to you account and choose the create ad-seach
    option. Most of time the google search box give all we have the great and powerfull seach ability.
    But, have you think every time users get seach with it. They do redirected to another page that is
    not within you site. It is easier to create web page that embeded the google sea....
  6. Php Word Filter
    Have you accidently sworn on your site? Or do you want to keep visitor (9)
    This is pretty simple but very useful if you don't want people to swear. We will be using
    str_replace for this. CODE str_replace ("curseword, "replacemet"); ?> Thats pretty simple,
    just fill in the curse word and the replacement, and then repeat... heres what it would look like
    full size: CODE str_replace("swear", "replacement"); str_replace("swear", "replacement");
    str_replace("swear", "replacement"); str_replace("swear", "replacement"); ?> Ok, but how do you
    get it to work on your page now? Well, save that file as wordfilter.php and use CODE ....
  7. Faux Ajax Loading - Css Only
    Pretend your site is Ajax based (3)
    Link: http://www.jlhaslip.trap17.com/samples/misc/ajax/index.html Check that out. The first page
    has information and the second and has the actual example of its use with sample CSS code. I find
    that when you visit a site which has a slow server and attempt to view 'large' Image files,
    it is pretty boring to sit and stare at a blank screen, so this little snippet of code can be used
    to give the visitor something to see to indicate that the image is being downloaded. I built a
    small animated gif that sits in the background of the space allocated for the image....
  8. Making The Popular Id Browsing For Your Site.
    (17)
    Was just sitting and being bored but then I realized I could show how to create more or less popular
    ?id=page browsing. It's actually really easy. I know two ways how to do it. First one I learned
    was checking the variable and if it's true including the text/file/anything needed and so on. It
    was ok, but sometimes I just couldn't make it work so I switched to switch() function and
    that's what I'm going to show you guys right now. So, I made a test page which contains the
    code needed and here is its source. CODE Untitled Home - P....
  9. Cpanel Useful Site Management Tools 2.1
    Part 3 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
    Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2.1:
    Useful Site Management Tools In this tutorial I will, in detail explain all of th....
  10. Cpanel Useful Site Management Tools
    Part 2 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 3: Useful Site
    Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
    Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2:
    Useful Site Management Tools In this tutorial I will, in detail explain all of t....
  11. Templating System Using Php Includes
    Building a Dynamic site using Includes and flat-files. (13)
    Php based Templating System http://jlhaslip.trap17.com/template/index.php The Source Code
    for the scripts are included (literally) on the different pages on the Demo, including the Contact /
    Email script. The only page not there yet is the Message Script. Maybe tonight I will upload that.
    This one uses a little bit of query-string checking to confirm that the contents of the page are
    actually available (file_exists())and an allowed page content before serving it up. The
    'allowed page content' is done by checking against a flat-file containing an array....
  12. Php Menu Bulding Script And Site Template
    available for download (0)
    A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
    a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
    Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
    in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
    look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
    web-site template which used php includes and embedded data to create a &....
  13. Php Spy Code
    Spy on your site! (21)
    Code Spy Code Description Anyone who comes to ur forum's IP Adress, Site they came From,
    Their Browser and the time they came will get saved in a place that only the admin knows the
    location of... V.2 More features coming up in V.2!!! POst suggestions/problems... Preview:-
    http://s15.invisionfree.com/Spy/index.php ? REFRESH THE PAGE, AND GO HERE:-
    http://h1.ripway.com/programming/spy%20code/spy.html ^^^^^^^That shows all the IP's, Browsers,
    Time, site and stuff....^^^^^^^^ Code First of all, you'll need to host the files.... I
    suggest you make....
  14. How To: Make A Simple Php Site
    Making one file show up on all pages using php (21)
    I have looked all over the site and could not find anything that was like this simple, or just like
    this at all.. For some people i know that you are using a basic HTML site...and having a big menu
    if you want to add somthing you have to go into every one of the pages and add or remove or edit
    what you want to do, but with somthing verry simple all you would have to do is edit one file, and
    all of the pages that have the PHP script on them would suddenly change to what that one file is.
    So to start off if you are planning on using this little tirck, the page that you a....
  15. Not To Be Banned By Google
    Take care that your site is not banned (2)
    /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> Strategic search engine
    optimization involves far more than keyword research, META tags and content. If you want to mange an
    SEO program, you need to be aware of any issue that can affect your success. Domain name management
    is one of the big factors. Effective domain name management is critical because you could end up
    getting banned from Google and other search engines if you take the wrong approach. Why would
    Google ban you? In the spirit of fair play and providing depth in its results, Google ....
  16. Phpbb Forum Site Transfer
    How to do it, step by step instructions (20)
    I'm sure many of you out there have used phpBB at some point. To those who enjoy running forums
    and online communities, specifically supporting phpBB, I am about to tell everyone how to restore
    the forums database from one website, to another. This is presuming you do not have any mods or
    hacks installed. Some of you may find this information useful. Here is the scenario: Let's say
    you have forums running phpBB version 2.0.17 (currently the latest one). You have decided that you
    want to move your forums to a whole new URL and provider, and as an added bonus, ch....
  17. Css And Javascript Combined For Dynamic Layout
    use of different CSS files at same site (9)
    This tutorial is meant for people that are dealing with problems while coding their site at 100% of
    width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
    file (take this in account when creating your website). How this script works. In the HEAD of your
    HTML document will apply this command, so variable.js file will be load at start: CODE
    In browser JavaScript file variable.js is loaded. This Javascript file consist of this parameters,
    copy this code and name it variable.js CODE // JavaScript Document if (sc....
  18. How To Make A Very Simple Wap Site
    A quick tutorial about WML language (43)
    WAP Site Tutorial : How to Make A Wap site? Before We begin.. Defination from the
    Web about Wap. QUOTE WAP is an open international standard for applications that use
    wireless communication . Its principal application is to enable access to the Internet from a
    mobile phone or PDA .A WAP browser provides all of the basic services of a computer based web
    browser but simplified to operate within the restrictions of a mobile phone. WAP is now the
    protocol used for the majority of the world's mobile internet sites, known as WAP sites ....
  19. How To Upgrade Your Nuked Site
    a simple how to (1)
    this can be found on my site. QUOTE Ok, so let's upgrade your nuked site. Make a temporary
    page saying that you're upgrading, or if you have nuke sentenel, disable your site. Pick a good
    version that is secure and stable. Use this link:
    http://www.nukescripts.net/modules.php?nam...wnloads&cid=300 ok, so now just upload everything, I
    suggest via FTP. You can just select all the files in the root directory and drag them into the root
    directory on your site. All the needed files must be overwriten. Now it's time to patch the
    site. Download the latest p....
  20. How To Make Your Site Sticky
    How to make your site more atractable (9)
    These are some basic ways in which you can make your site sticky. QUOTE What is sticky? A
    sticky website is one that a visitor will keep coming back to, expecting to find out if there has
    been an update. It is the fascination of the visitor that this site is constantly changing that
    draws them near. Here are the useful tips. How much text-imagery should I have on my site?
    Generally it should be 70% text or space and 30% imagery. Remember that the site layout (table
    borders, backgrounds, etc) count as 10% in total (no matter how much or little) of imagery. 1....
  21. Checking The Web Site Speed
    (10)
    Did you taking too much time to access your favorite sites? Probably the problem is on the server
    used by those sites. To make sure that is the problem, use Windows PING facility. Ping is a small
    program, which sends a 32-bit signal to the Web site server. Next, Ping record the time needed by
    the server to answer it. To activate Ping: Click on the Start-Run menus, type command, and then
    click OK. Type PING "site name" in the MS-DOS prompt window, for example PING www.yahoo.com. In a
    moment, the result will appear on the screen. A result less than 300ms is normal spee....
  22. How To Put A Phpbb Login Box On Your Main Site.
    Code and .php included!!! (19)
    I have included my coded file with this... Ok here is the code. CODE // //Create login area,
    replace the phpBB2 in /phpBB2/login.php with your forum's //directory //   Prank Place
    Forum Index     Please enter your username and password to log in.        
                  Username:                   Password:      
                Log me on automatically each visit:                    
    I forgot my password         You can test this out on my....
  23. Excluding Your Site From Showing Up On Search Engines
    Or how to prevent stalkers from finding your personal site. (0)
    Firstly, I suppose there are very few people here who would want to do this. Most people want
    their sites to be listed on search engines, and these are probably the ones thinking that I must
    have a loose screw or something. But if you use your site for personal blogging and want to keep it
    open to friends and yet prevent your privacy from being infringed upon, this is worth looking at.
    What you need: 1. A text editor. Notepad works fine for me. 2. Coffee. (Not because you're going
    to stay up all night, but because I like to drink coffee for any and every reason po....
  24. How To Setup A Php-nuke Based Site
    very helpfull (5)
    Ok, so you want to have a php nuke site. First of all, what is this "PHP nuke", and why is it so
    special? Php nuke is a web portal system. It is expandible, and can be very usefull. You can find
    an example here. Yes, it is that good. So, lets take a closer look. It's pre-packaged basic
    features are: *forums *a login system *weblinks *downloads *news *polls *faqs *content You can
    allways de-actuvate some features, but it's near-imposible to remove them. Kinda annoying, but
    you know. Some people may not need phpnuke, or cant have i period. You need: *some ....
  25. Who's Viewing My Site?
    Targeted for AIM users (11)
    As some of you may know, I asked a question on how to get a portion of the URL in the address bar
    and save it, and thanks to several sources*, I have successfully learned how to do that. Today, I
    will share with you, step-by-step, my knowledge. The object of this tutorial is to mimic a
    feature on many subprofiles where you're able to see the AIM screennames of people who viewed
    your site. Note : The URL that I will be using extensively throughout this tutorial is
    http://yoursite.trap17.com . This is not a special URL reserved on trap17 but is merely a represe....
  26. HTML tags and examples
    Condensed form of course from my site... (37)
    Well, I decided to try and help out some of the users here who might be unexperienced in HTML, so I
    condensed the begginer's HTML course at my website. Here it is... Lesson 1 HTML means Hyper
    Text Markup Language. HTML is a very common language used for many websites, is the base for more
    complicated and powerful langauges like php, HTML can seem hard, but you will find it is one of the
    easiest langauges one can learn. The core of HTML is the tag, a tage is just a set of two
    arrows-like brackets created by hitting Shift and the comma key, or Shift and the period....
  27. Php Quiz Script
    Make quizzes for your site. (29)
    Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
    doesnt do anything special but I am going to make an email mod for it so that it will email results
    to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
    editor and paste in the following code. CODE $qid = "Quiz ID-00"; ?>
    Username: 1.) Question number one is? Answer1 Answer2 2.) Question number two is?
    Answer1 Answer2 3.) Question number three is? Answer1 Answer2 4.) Question num....
  28. How To Host Ur Own Site In 2 Mins Php+mysql Needed
    (34)
    QUOTE Run you're own server for testing phpmysql or just to host you're own website or
    for you're friends. -needS: a PC that's all 8) - How to ? download : CODE
    http://server.paehl.de/apache20.zip : 30 seconds Installing:---> 1 minute
    *********************************** Unpack the exe where ever you want. after unpack run
    serverinst.exe and change Servername and your e-mail. Start the following files one time:
    start_apache.cmd --> start apache as service mysql_start_as_service.cmd  --> dito for mysql
    mysql_first_start.cmd  --> start m....
  29. Php Emailer/contact System
    An email or contact system for your site (20)
    Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site
    to email you just by filling out a form. So here is what you need to do to set it up. First open up
    a new page in your text editor and paste in the following code. CODE $Name = $_POST ; $Subject
    = $_POST ; $Email = $_POST ; $Site = $_POST ; $Message=$_POST ; $align = $_POST ; $to = "$EmailTo";
    $subject = "$Subject"; $body = "$Message\n\n\n$Site\nBy: $Name"; $headers = "From: $Email\n";
    mail($to,$subject,$body,$headers); // After they've clicked "Send", this is whe....
  30. [tutorial] Skinning Your Site
    a tutorial on how to skin your website (2)
    For this tutorial you are going to need to know how to use php includes. You are also going to need
    to rename all o your files to a .php extension. In your FTP or Cpanel make a folder in your public
    (main) directory and name it "skins". In the skins folder make another folder named "1". In the
    folder you names skins make a file called cookiecheck.php. Copy the code below and paste it into the
    cookiecheck.php file. $total_skins = 1; $default_skin = 1; if (isset($_REQUEST )) {
    $newskin=(int)$_REQUEST ; if ( ($newskin $total_skins) ) $newskin=$defau....

    1. Looking for php, loginscript, site
Similar
[aef] Most Recent Topics Listing Mod - on your Web-site pages
How To Make An Ultimate Game List. - If you're making a site on video games or such.
Simple Stylesheet Tutorial - Stylesheet embedded in your site.
How To Set Up A Bookmarking System On Wii - Use your favorite social bookmarking site.
Create A Google Seach Result Page Embed Within Your Site Page.
Php Word Filter - Have you accidently sworn on your site? Or do you want to keep visitor
Faux Ajax Loading - Css Only - Pretend your site is Ajax based
Making The Popular Id Browsing For Your Site.
Cpanel Useful Site Management Tools 2.1 - Part 3 of My 7 Part Tutorial
Cpanel Useful Site Management Tools - Part 2 of My 7 Part Tutorial
Templating System Using Php Includes - Building a Dynamic site using Includes and flat-files.
Php Menu Bulding Script And Site Template - available for download
Php Spy Code - Spy on your site!
How To: Make A Simple Php Site - Making one file show up on all pages using php
Not To Be Banned By Google - Take care that your site is not banned
Phpbb Forum Site Transfer - How to do it, step by step instructions
Css And Javascript Combined For Dynamic Layout - use of different CSS files at same site
How To Make A Very Simple Wap Site - A quick tutorial about WML language
How To Upgrade Your Nuked Site - a simple how to
How To Make Your Site Sticky - How to make your site more atractable
Checking The Web Site Speed
How To Put A Phpbb Login Box On Your Main Site. - Code and .php included!!!
Excluding Your Site From Showing Up On Search Engines - Or how to prevent stalkers from finding your personal site.
How To Setup A Php-nuke Based Site - very helpfull
Who's Viewing My Site? - Targeted for AIM users
HTML tags and examples - Condensed form of course from my site...
Php Quiz Script - Make quizzes for your site.
How To Host Ur Own Site In 2 Mins Php+mysql Needed
Php Emailer/contact System - An email or contact system for your site
[tutorial] Skinning Your Site - a tutorial on how to skin your website

Searching Video's for php, loginscript, site
See Also,
advertisement


A Php Loginscript For Your Site - For everybody

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com