<style type="text/css"> .color{color:red;} .color1{color:#31B0D5;} .color2{color:#39AA39;} </style> </head> <body> <div class="container"> <div style="margin-top:70px;margin-bottom:50px" class="row"> <div class="col-md-4"> </div> <div style="border:1px solid;padding:40px" class="col-md-4 "> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['answer'])) { $answer = $_POST['answer']; if ($answer == Mc::getMcAnswer()) { $full_name = $_POST['full_name']; $user_name = $_POST['user_name']; $email = $_POST['email']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; if (empty($full_name) or empty($user_name) or empty($email) or empty($password) or empty($confirm_password)) { echo "<h4>Every field should be filup </h4>"; } else { if ($password != $confirm_password) { echo "Password does not match"; } else { if (!preg_match("/^[a-zA-Z ]*\$/", $full_name)) { echo "In Full Name only letters and white space allowed"; } else { if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {