// Include functions
require("C:\inetpub\wwwroot\usalaw-blogs\site-wide-files\php\functions.php");
?>
if(!isset($_POST['submit'])){
?>
} else {
// Insert into DB
$today = date("Y-m-d h:i:s");
$is_associate = 1;
$name = addslashes($_POST['name']);
$email = addslashes($_POST['email']);
$phone = addslashes($_POST['phone']);
$name = addslashes($_POST['name']);
$zip = addslashes($_POST['zip']);
$question = addslashes($_POST['question']);
$ip = addslashes($_SERVER['REMOTE_ADDR']);
// Send Email
$form_message = $_POST['question'];
$form_message = stripslashes($form_message);
$form_message = trim($form_message);
$subject = "Tampa Family and Divorce Lawyer Form Submission";
$city = get_city($_POST['zip']);
$message = "- Name: " . $_POST['name'] . "\r\n";
$message .= "- Email: " . $_POST['email'] . "\r\n";
$message .= "- City: ". $city['description'] . "\r\n";
$message .= "- Zip: " . $_POST['zip'] . "\r\n";
$message .= "- Phone: " . $_POST['phone'] . "\r\n\r\n";
$message .= "- Question: " . $_POST['question'] . " \r\n\r\n";
/* additional headers */
$headers = "From: " . $_POST['name'] . " <" . $_POST['email'] . "> \r\n";
switch($is_associate){
case 0:
$recipient = "unsponsored@clarislaw.com";
break;
case 1:
$recipient = "unsponsored@clarislaw.com";
break;
case 2:
$recipient = "unsponsored@clarislaw.com";
break;
}
// DB Insert
insert_into_db($name, $email, $phone, $name, $zip, $question, $ip, $today, $recipient, $is_associate);
/* and now mail it */
mail($recipient, $subject, $message, $headers);
?>
Thank You for Your Submission
=$_POST['name']?>,
Thank you for your submission to the editor of this site. While our editors
endeavor to respond to the inquiries submitted on ClarisLaw.com, you may or may
not receive a response within two business days of your inquiry, depending
upon the availability, ability and willingness of the editor to respond to
any questions submitted.
Neither Claris Law, Inc. nor the editors of the ClarisLaw.com website are under any
legal obligation to supply a written or any other form of response to
inquiries submitted. If you do not communicate with an attorney or firm
featured in this site, we encourage you to investigate further any legal
matters you have with other attorneys.
Return Home
}
?>