Form Submit using HTML


HTML
<!-- begin your Recovery start -->
<div class="begin-recovery" id="begin-your-recovery">
<div class="container">
<div class="row begin-recovery-row">
<div class="col-lg-6 pl-0 pr-0">
<div class="begin-recovery-left">
<img src="../imgs/begin-your-recovery.jpg" />
</div>
</div>
<div class="col-lg-6">
   <div class="begin-recovery-form">
   <h2>Begin your Recovery</h2>
   <p>Fill out the form below and one of our staff members will get back to you shortly.</p>
<form action="bcbs_recovery_form-process.php" method="POST">
   <div class="begin-recovery-form-field">
   <div class="input-field">
   <div class="name-field">
<input  type="text" name="name" id="first_name" placeholder="Name*" required />
   </div>
   <div class="number-field">
<input type="text" name="number" id="phone_number" placeholder="Phone Number*" required />
   </div>
   </div>
   <textarea name="message" id="msg" placeholder="Message (Optional)"  rows="4" ></textarea>
   
   <input type="submit" class="begin-recovery-btn" name="get_help_now" id="btn_get_help_now" value="get help now"/>
<?php 
if(isset($_GET['msg'])){
echo "<div style='margin-top: 10px;'>Successfully form Submited</div>";
}
?>
   </div>
</form>
   </div> 
</div>
</div>
</div>
</div>
<!-- begin your Recovery end -->

process.php
<?php
$errorMSG = "";
if (isset($_POST) && !empty($_POST))
{
    if (!empty($_POST["name"]) &&  !empty($_POST["number"]))
    {
        $firstname = strip_tags($_POST["name"]);
        $email = strip_tags($_POST["email"]);
        $phone = strip_tags($_POST["number"]);
        $message = strip_tags($_POST["message"]);
        
$Body = "";
//$Body .= "<b>Is treatment for you or your loved one:</b> ".$treatment;
//$Body .= "<br/><br/>";
$Body .= "<b>Name:</b> ".$firstname;
$Body .= "<br/><br/>";
$Body .= "<b>Email:</b> ".$email;
$Body .= "<br/><br/>";
$Body .= "<b>Phone Number:</b> ".$phone;
$Body .= "<br/><br/>";
$Body .= "<b>Message:</b> ".$message;
$Body .= "<br/>";
        
//$to = 'forrestmarketingsolutions@gmail.com';
$to = 'forrestmarketingsolutions@gmail.com';
$subject = 'Contact from California Prime Recovery';
        $headers = "From: " . strip_tags($_POST['email']) . "\r\n";
        $headers .= "Reply-To: " . strip_tags($_POST['email']) . "\r\n";
        $headers .= "MIME-Version: 1.0\r\n";
        $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
        @mail($to, $subject, $Body, $headers); 
header('location:bcbs-information.php?msg=success#begin-your-recovery');

        exit;
    }
    else
    {
        echo "else";
        header('location:./');
        exit;
    }
}
echo "abc";
header('location:./');
exit;