How do I get this code in this php file below to send the data from form on a html page,[B] but either stays on the same page or redirects back to the page? Right now, it sends the data and goes to a blank page.
<?php
$to = “
$subject = “Contact Page Information for Hope Today”;
$headers = “From: ” . $_POST[“name”];
$headers .= “<” . $
$headers .= “Reply-To: ” . $_POST[“email”] . “rn”;
$headers .= “Return-Path: ” . $
$message .= “nn”;
$message .= “Subject: ” . $_POST[“subject”] . “rn”;
$message .= “Email: ” . $
$message .= “Name: ” . $_POST[“name”] . “rn”;
$message .= “Address: ” . $
$message .= “City: ” . $_POST[“city”] . “rn”;
$message .= “State: ” . $
$message .= “Zip Code: ” . $_POST[“zip”] . “rn”;
$message .= “Phone: ” . $
$message .= “Message: ” . $_POST[“message”] . “rn”;
mail($to, $subject, $message, $headers);
?>