Parse error: syntax error, unexpected '$Email' (T_VARIABLE) in C:\xampp\htdocs\test1\connect.php on line 3
<?php
if(isset($_POST ["password"])
$Email=$_POST['email'];
$password=$_POST['password'];
$conn = new mysqli('localhost','root','','test1');
if($conn->connect_error){
    die('Connection Failed : '.$conn->connect_error);
}
else{
    $stmt = $conn->prepare("insert into login(email,password)
        values(?,?)");
    $stmt->bind_param("ss",$Email,$password);
    $stmt->execute();
    echo "login Sucessfully...";
    $stmt->close();

}
?>

On line 1 you are missing another right paren ) and left curly brace { at the end of the line.

if (isset($_POST["password"])) {
    $Email    = $_POST['email'];
    $password = $_POST['password'];
    $conn     = new mysqli('localhost', 'root', '', 'test1');
    if ($conn->connect_error) {
        die('Connection Failed : ' . $conn->connect_error);
    } else {
        $stmt = $conn->prepare("insert into login(email,password)
        values(?,?)");
        $stmt->bind_param("ss", $Email, $password);
        $stmt->execute();
        echo "login Sucessfully...";
        $stmt->close();
    }
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.