Shoutbox

website help - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: website help (/showthread.php?tid=44345)

website help by dylan! on 05-08-2005 at 06:18 AM

well im making a site for my uncle and im not so sure what he wants it for but he wants you to have to like register/login on the homepage before you can do anything and he wants like profiles and stuff...and i was wondering what would be a html code for something like this as im not so good?:P


RE: website help by ddunk on 05-08-2005 at 06:24 AM

It probably wouldn't be best to do a login system with HTML. PHP/Mysql would be a much better choice


RE: website help by dylan! on 05-08-2005 at 06:28 AM

well could i liek add it into a site in like code?...cause im no good at making anything wiht anything like that and i was wondering if anyone could make me one or something(A):P


RE: website help by lopardo on 05-08-2005 at 06:32 AM

http://phpnuke.org/? :P


RE: website help by segosa on 05-08-2005 at 10:05 AM

quote:
Originally posted by ~!dylan!~
well im making a site for my uncle and im not so sure what he wants it for but he wants you to have to like register/login on the homepage before you can do anything and he wants like profiles and stuff...and i was wondering what would be a html code for something like this as im not so good?:P


I can't believe you think a complete login system with profiles and the lot is a piece of HTML someone can put into a reply on a forum.

* segosa sighs.
RE: website help by Rik on 05-08-2005 at 01:17 PM

this?
http://javascript.internet.com/passwords/login-coder.html :undecided:


RE: website help by user27089 on 05-08-2005 at 01:19 PM

quote:
Originally posted by Cool Rik
this?
http://javascript.internet.com/passwords/login-coder.html :undecided:

I think that he wants something a little more protected, that would be too easy to hack ;).
RE: website help by Rik on 05-08-2005 at 01:24 PM

quote:
Originally posted by traxor

I think that he wants something a little more protected, that would be too easy to hack ;).
really?
i mean this protection doesn't save the pass in the Source code (the pass is in numbers)
can you hack mine?
RE: website help by dylan! on 05-08-2005 at 05:15 PM

i saw that when i was searching and like i would have to make it but i need one where like THEY sign-up and login


EDIT: i found this site but its a little to confusing:S:P

http://www.evolt.org/article/PHP_Login_System_wit...Features/17/60384/


RE: website help by Jhrono on 05-08-2005 at 05:41 PM

quote:
Originally posted by ~!dylan!~

EDIT: i found this site but its a little to confusing

http://www.evolt.org/article/PHP_Login_System_wit...Features/17/60384/

Every time i open that url, my firefox crashes...(happened 3 times..)
RE: website help by dylan! on 05-09-2005 at 01:16 AM

well i found what i needed and have it setup and everything all i need is to know where to change it to make it go to a diferent page once you click on register or login


<h1>Register</h1>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table align="center" border="1" cellspacing="0" cellpadding="3">
<tr><td>Username*:</td><td>
<input type="text" name="uname" maxlength="40">
</td></tr>
<tr><td>Password*:</td><td>
<input type="password" name="passwd" maxlength="50">
</td></tr>
<tr><td>Confirm Password*:</td><td>
<input type="password" name="passwd_again" maxlength="50">
</td></tr>
<tr><td>E-Mail*:</td><td>
<input type="text" name="email" maxlength="100">
</td></tr>
<tr><td>Website:</td><td>
<input type="text" name="website" maxlength="150">
</td></tr>
<tr><td>Location</td><td>
<input type="text" name="location" maxlength="150">
</td></tr>
<tr><td>Show E-Mail?</td><td>
<select name="show_email">
<option value="1" selected="selected">Yes</option>
<option value="0">No</option></select>
</td></tr>
<tr><td colspan="2" align="right">
<input type="submit" name="submit" value="Sign Up">
</td></tr>
</table>
</form>

<?php

}


</body>
</html><?php


session_start();

if (!isset($_SESSION['username']) || !isset($_SESSION['password'])) {
    $logged_in = 0;
    return;
} else {

    // remember, $_SESSION['password'] will be encrypted.

    if(!get_magic_quotes_gpc()) {
        $_SESSION['username'] = addslashes($_SESSION['username']);
    }


    $pass = $db_object->


<h1>Login</h1>
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
<table align="center" border="1" cellspacing="0" cellpadding="3">
<tr><td>Username:</td><td>
<input type="text" name="uname" maxlength="40">
</td></tr>
<tr><td>Password:</td><td>
<input type="password" name="passwd" maxlength="50">
</td></tr>
<tr><td colspan="2" align="right">
<input type="submit" name="submit" value="Login">
</td></tr>
</table>
</form>
<?php
}
?>
</body>
</html><?php

require 'db_connect.php';    if ($logged_in == 0) {
    die('You are not logged in so you cannot log out.');
}


unset($_SESSION['username']);
unset($_SESSION['password']);
// kill session variables
$_SESSION = array();
session_destroy();   
header('Location: main.php');
?><?php

require 'db_connect.php';

// require our database connection
// which also contains the check_login.php
// script. We have $logged_in for use.

if ($logged_in == 0) {
    die('Sorry you are not logged in, this area is restricted to non-registered members.


RE: website help by ddunk on 05-09-2005 at 01:20 AM

Uhh, does your host support php?


RE: website help by dylan! on 05-09-2005 at 01:22 AM

yeash...well i ut it in and it worked like it showed the table and everything properly


RE: RE: website help by user2319 on 05-09-2005 at 12:41 PM

quote:
Originally posted by Johny
quote:
Originally posted by ~!dylan!~

EDIT: i found this site but its a little to confusing

http://www.evolt.org/article/PHP_Login_System_wit...Features/17/60384/

Every time i open that url, my firefox crashes...(happened 3 times..)

Not overhere..

Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.7) Gecko/20050425 Firefox/1.0 (Ubuntu package 1.0.3)

There are other sites it crashes on, though :dodgyomar: