Есть такой код:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$pass = $_POST['pass'];
$pass2 = $_POST['pass2'];
if (strlen($pass) < 8) {
echo '<meta http-equiv="refresh" content="0;http://localhost/Register_or_Login.php?err=1">';
}elseif (!preg_match("#[0-9]+#", $pass)) {
echo '<meta http-equiv="refresh" content="0;http://localhost/Register_or_Login.php?err=2">';
}elseif (!preg_match("#[a-zA-Z]+#", $pass)) {
echo '<meta http-equiv="refresh" content="0;http://localhost/Register_or_Login.php?err=3">';
}else{
if($pass == $pass2) {
echo ('
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<script src="https://ts-forms.web.app/__/firebase/7.14.2/firebase-app.js"></script>
<script src="https://ts-forms.web.app/__/firebase/7.14.2/firebase-analytics.js"></script>
<script src="https://ts-forms.web.app/__/firebase/7.14.2/firebase-auth.js"></script>
<script src="https://ts-forms.web.app/__/firebase/7.14.2/firebase-firestore.js">
</script>
<script src="https://ts-forms.web.app/__/firebase/init.js"></script>
<script>firebase.auth().createUserWithEmailAndPassword('.$email.', '.$pass2.').catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});</script>
</body>
</html>
');
}else {
echo '<meta http-equiv="refresh" content="0;http://localhost/Register_or_Login.php?err=4">';
}
}
?>
И есть такая ошибка
Uncaught SyntaxError: missing ) after argument list
Как это исправить?
Спасибо...