ok i cant see whats is wrong with this but it wont add a user
<?php
include "config.php";
//Get the information from the form
$username = $_POST['username'];
$email = $_POST['email'];
$password_1 = $_POST['password_1'];
$password_2 = $_POST['password_2'];
// makes sure that the 2 passwords match and that the email address is valid
if (( $password_1 == $password_2)&&($password_1 > 3)&&(ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email))&&($username < 30)) {
$password_1 == md5($password_1) ;
$email == $email ;
$query = "INSERT INTO users (username, email, password) VALUES ('$username', '$email', '$password_1')";
// execute query
$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());
// print message
echo "sucess";
}
// if input not valid
else {
echo "no soup for you";
}
?>