<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<label for="name">Your name:</label>
<input type="text" name="name" class="form-control" id="userName" value="<?php echo htmlspecialchars($name);?>" />
<br /><?php echo $RegObject->ErrMsg['name']; ?>

<label for="email">Your email:</label>
<input type="text" name ="email" id="userEmail" class="form-control" value="<?php echo htmlspecialchars($email);?>" />
<br /><?php echo $Object->ErrMsg['email']; ?>
<form>


public function ValidationCheck($input){

if (!preg_match("/^([a-zA-Z ]{3,30})*$/",$input["name"])){
$this->ErrMsg['name'] = '<div class="error">Please Give your Real Name</div>';
$this->ErrMsg['alert'] = 'Invalid Name';
$this->ErrorLog = True;
}
}

public function error(){
return $this->ErrorLog ;
}
here is my call

$Object->ValidationCheck($input)
if(!($Object->error()))
{
$Success="SuccessFul";
}

Notice: Undefined index: name in ..... on line 175
Notice: Undefined index: email in ..... on line 179