I know he just ****es me of the way he thinks webdesign is just Dreamweaver "/

I know he just ****es me of the way he thinks webdesign is just Dreamweaver "/
Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
[Thybag.co.uk - Vive la revolutione]
shut up will you you think your best but your not and before you say i'm better than you i nkow you are so SHUT UP (Show Off)Originally Posted by splintercell!
I know he just ****es me of the way he thinks webdesign is just Dreamweaver "/
I feel your pain.Originally Posted by splintercell!
I know he just ****es me of the way he thinks webdesign is just Dreamweaver "/
Password systems are pretty simple realy, for ultra simplicty u can just do it server side via htaccess and all that, or in cpnale it does that itself on the proected diretys thing "/
Athogh to look nice or anything a simple php systems a easy soltuion "/ i prefer to use cookies, athoghs mainly becuse my orignal exspeince with sessions didnt go so well, as to say it didnt work, so ive stuck with cookies mainly "/
can u give me the one which uses mysql and sessions plz
Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc
The only time I use dream weaver for PHP is when I need to find a line number... EG) Adding forum/cutenews mods
But you can't make scripts just clicking buttons on dream weaver...
Now to make a login script for your website. open wordpad or an editor and enter this code and save it as config.php
Next. make a new page and name it form.phpPHP Code:<?php
//////////////////////////////////////////////////////
// Admin Login scrip by by: //
// HotelMentor //
// //
// Copyright 2005(c) //
//////////////////////////////////////////////////////
$username = "Username";//You should replace Usernamehere with your desired username
$password = "Password";//You should replace Passwordhere with the desired password
$location = "http://www.location here.com";//The location that the person needs authenticiation to should replace www.location here.com
//DO NOT REMOVE THE HTPP://, also do an exact location, like: http://www.comcast.net/
$badinfo = "Sorry, the information you have entered is not valid. Please try again.";//The message that should appear when the user information is bad should replace Die message //here
$noinfo = "No information here.";//The message that should appear when one or more of the fileds are empty should replace No Info Here
?>
enter this code
Now the final step. new page once again. name it login.php enter this code.PHP Code:///////////////////////////////////////////////////////////////////
//This section of the script was created by HotelMentor //
/////////////////////////////////////////////////////////////////
<body bgcolor="#f2f2f2">
<style type="text/css"><!--
BODY {
scrollbar-face-color:#F2F2F2;
scrollbar-highlight-color:#F2F2F2;
scrollbar-3dlight-color:#F2F2F2;
scrollbar-darkshadow-color:#F2F2F2;
scrollbar-shadow-color:#F2F2F2;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#F2F2F2;
}
--></style>
<form name="form1" method="post" action="">
<p><font face="Verdana" size="1">Username:</font>
<input name="userinput" type="text" id="userinput">
<br>
<br>
<font face="Verdana" size="1">Password:</font>
<input name="passinput" type="password" id="passinput">
<br>
<br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">
<input name="action" type="hidden" id="action" value="submit">
</p>
</form>
And now upload these to the public html.PHP Code:<?php
include('config.php');
if($action == "submit"){
if(($userinput == "")||($passinput == "")){
echo "$noinfo";
} else {
if(($userinput == $username)&&($passinput == $password)){
header( "Location: $location" );
} else {
echo "$badinfo";
}
}
}
include('form.php') ;
?>
Heres the readme to configure.
Hello, before you get started, read this to learn how to use it.
1) For your users to login, simply redirect them to http://www.yoursite.com/login.php
2) Do NOT change the form.php file.
If you want to change the username, password or redirection URL, simply:
1) Open (edit) config.php.
2) If you'd like to change the password, change the "blah" part of $password = "blah".
3) If you'd like to change the location URL, change the "location.here.com..." in $location = "http://www.location here.com".
4) Do NOT change the rest and enjoy the script.
Created by Gerard Gargan (HotelMentor / Temporary) for www.habboid.co.uk.
Copyright 2005(c)
Lmao man your to funnyOriginally Posted by splintercell!
you could set a session and then on other hidden pages check if one has been set to add securiity... also..
shut the **** up.
erm.. www.biorust.com has alot of tutorials on making scripts like that but they use mysql.. you can also download a full pre-made script from there.. www.time-2-design.com has a few aswell.. but theyre membership systems.. but they can easily be applied to what you want![]()
Rofl! Splint.. you say what we're all thinkingOriginally Posted by splintercell!
shut the **** up.
*Image Removed
Ahemm.. How exactly was my sig innapropriate?
Goddamit i hate this forum :@
I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@
Want to hide these adverts? Register an account for free!