אז ככה יש לי בעיה בקוד הרשמה.
זה הלינק להרשמה:
http://vent.freshserv.net/reg.html
הקוד של regs.php
PHP קוד:
<?php
include "connections.php";
$user = $_POST['user'];
$password = $_POST['password'];
$password2 = md5($_POST['password']);
$email = $_POST['email'];
$date=date ("j/n/Y");
if (preg_match("/^[\w\-\.]+\@[\w\-\.]+\.[\w\-]+$/i",$email)!=0 && mysql_num_rows($query)==0 && preg_match("/^[a-zA-Z0-9]{3,}$/",$password) && preg_match("/^[a-zA-Z0-9]{3,}$/", $username))
{
echo " <center><br><font size='1' face='Tahoma' color='blue'> נרשמת בהצלחה ";
mysql_query("INSERT INTO users (username, password, email, Date, password2) VALUES ('$username', '$password', '$email', '$date', '$password2')");
}
elseif (mysql_num_rows($query) != 0)
{
echo "<center><br><font size='1' face='Tahoma' color='red'> שגיאה : שם משתמש תפוס ";
}
else
{
echo "<center><br><font size='1' face='Tahoma' color='red'> שגיאה : אנא בדוק שהקלדת דואר תקין ";
}
?>
תודה ויום טוב,
ירין