create and validate a registration form
PROGRAM: <!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php /* define variables and set to empty values */ $nameErr = $emailError = $mobileError =""; $name = $email = $mobile = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); /* check if name only contains letters and whitespace */ if (!preg_match("/^[a-zA-Z ]*$/",$name)) { $nameErr = "Only letters and white space allowed"; } } if (empty($_POST["name"])) { $mobileError = "Name is required"; } else { $mobile = test_input($_POST["mobile"]); /* ch...