<?php
$connect = mysql_connect('localhost','root',") or die(mysql_error());
mysql_select_db('Lololo');
if (isset($_POST['submit'])){ -------------------------------------------------------------- в этой строчке ошибка
$username = $_POST['username'];
$login = $_POST['login'];
$password = $_POST['password'];
$r_password = $_POST['r_password'];
if($password==$r_password){
$password = md5($password);
$query = mysql_query("INSERT INTO users VALUES(",'$username','$login','$password')")or die(mysql_error());
}
else {
die('Passwords must match!');
}
}
?>
<form method="post" action="register.php">
<input type="text" name="username"placeholder="Username"required/><br>
<input type="text" name="login"placeholder="Login"required/><br>
<input type="password" name="password"placeholder="password"required/><br>
<input type="password" name="r_password"placeholder="Repeat password"required/>
<input type="submit" name="submit" value ="Register" />
</form>
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in в 4 строчке