Thanks a lot for your support :D.
New bug (I’m sorry if I’m going in off topic…):
This is a part of the registration, but it says the inputs are empty…
This is the code:
[php]elseif($step == “steptwo”)
{
$perreg = “10%”;
$interror = $_GET[‘error’];
if($interror == 1)
{
$error = “Account exist!”;
}
elseif($interror == 2)
{
$error = “Passwords don’t match.”;
}
elseif($interror == 3)
{
$error = “You must complete all the form!!”;
}
else
{
$error = “”;
}
echo(“
Registration form
username: |
|
Password: |
|
Conferma la Password: |
|
Email: |
|
“.$error.”
“);
}
elseif($step == “checkdataa”)
{
$name = htmlspecialchars($_GET[‘username’]);
$password = htmlspecialchars($_GET[‘pass’]);
$password2 = htmlspecialchars($_GET[‘pass2’]);
$email = htmlspecialchars($_GET[‘email’]);
$query = “SELECT Name FROM users WHERE LOWER(Name) = LOWER(””.$name.”")";
$query2 = “SELECT email FROM users WHERE email = “”.$email.”"";
$result = mysql_query($query);
$result2 = mysql_query($query2);
if($_GET['username'] == "" || $_GET['pass'] == "" || $_GET['pass2'] == "" || $_GET['email'] == "")
{
header("location:?p=index&sub=register&step=steptwo&error=3");
}
else
{
if($result != $_GET['username'] || $result2 != $_GET['email'])
{
$_SESSION['username'] = $_GET['username'];
$_SESSION['password'] = $_GET['password'];
$_SESSION['email'] = $_GET['email'];
header("location:?p=index&sub=register&step=stepthree");
}
else
{
header("location:?p=index&sub=register&step=steptwo&error=1");
}
}
}[/php]