Mmm i dunno Lol i just followed this http://forumnerds.com/showthread.php?t=5

Mmm i dunno Lol i just followed this http://forumnerds.com/showthread.php?t=5
This is suppoced to be your register.php :Mmm i dunno Lol i just followed this http://forumnerds.com/showthread.php?t=5
PHP Code:<?php
require_once "dbconfig.php"; // include the database information
if(!isset($_POST['join'])){
echo "<form method=\"post\" action=\"register.php\">
<label>Username</label><br/><input name=\"username\"/><br/>
<label>Password</label><br/><input name=\"password\" type=\"password\"/><br/>
<input type=\"submit\" name=\"join\" value=\"register\"/>
</form>";
}else{
$pass = sha1($_POST['password']);
$user = mysql_real_escape_string($_POST['username']);
mysql_query("INSERT INTO users (id, username, password) VALUES (NULL, '$user', '$pass')") or die("somthing went wrong during the registration. MySQL said: ".mysql_error());
echo "registration compleate you may now <a href=\"loginform.html\">login</a>.";
}
?>
That was my register.phpThis is suppoced to be your register.php :
PHP Code:<?php
require_once "dbconfig.php"; // include the database information
if(!isset($_POST['join'])){
echo "<form method=\"post\" action=\"register.php\">
<label>Username</label><br/><input name=\"username\"/><br/>
<label>Password</label><br/><input name=\"password\" type=\"password\"/><br/>
<input type=\"submit\" name=\"join\" value=\"register\"/>
</form>";
}else{
$pass = sha1($_POST['password']);
$user = mysql_real_escape_string($_POST['username']);
mysql_query("INSERT INTO users (id, username, password) VALUES (NULL, '$user', '$pass')") or die("somthing went wrong during the registration. MySQL said: ".mysql_error());
echo "registration compleate you may now <a href=\"loginform.html\">login</a>.";
}
?>
Still makes no diffrence
Make sure the database is actually receiving the login information (use the form, then check phpMyAdmin to see whether it inserted properly). If it did, that gives you a starting point.
Want to hide these adverts? Register an account for free!