Exemplo n.º 1
0
}
//END FUNCTIONS -- END FUNCTIONS -- END FUNCTIONS -- END FUNCTIONS -- END FUNCTIONS -- END FUNCTIONS --
//START CODING --  START CODING -- START CODING -- START CODING -- START CODING -- START CODING -- START CODING
$stripChrsA = array("<", ">", "!", "\$", "%", "*", "{", "}", "|");
$stripChrsB = array("<", ">", "*", "|");
$stripiName = str_replace($stripChrsA, "", $_REQUEST['iName']);
// passed to next line
$iName = ucwords(strtolower($stripiName));
// capitalizing first letter after lowercasing string
$iEmail = str_replace($stripChrsA, "", $_REQUEST['iEmail']);
$stripiPhone = str_replace($stripChrsA, "", $_REQUEST['iPhone']);
$iPhone = formatPhone($stripiPhone);
$stripiPhone = preg_replace("[\\D]", "", $_REQUEST['iPhone']);
$iPhone = formatPhone($stripiPhone);
$stripcontact_message = str_replace($stripChrsB, "", $_REQUEST['contact_message']);
$stripcontact_message = str_replace("!", ".", $_REQUEST['contact_message']);
// passed to next line
$stripcontact_message = str_replace("{", "(", $stripcontact_message);
// passed to next line
$stripcontact_message = str_replace("}", ")", $stripcontact_message);
// passed to next line
$contact_message = ucfirst(strtolower($stripcontact_message));
// capitalizing first letter after lowercasing string
$mail_array = ["Name" => $iName, "Email" => $iEmail, "Phone" => $iPhone, "Message" => $contact_message];
// echo '<hr>' . $iName . '<br>' . $iEmail. '<br>' . $iPhone. '<br>' . $contact_message;
require_once 'auto-mail.php';
auto_mail($mail_array);
$forwardURL = 'http://www.anthonyroy.info/VWS/radice/thankyou.html';
//$forwardURL = 'http://www.radicelawstl.com/thankyou.html';
header('Location: ' . $forwardURL);
die;
Exemplo n.º 2
0
        }
        if ($_REQUEST['file']) {
            $file = $_REQUEST['file'];
            $quote_array[file] = $file;
        }
        if ($_REQUEST['date']) {
            $date = str_replace($stripChrs, "", $_REQUEST['date']);
            $quote_array['date'] = $date;
        } else {
            $date = 'not given';
            $quote_array['date'] = $date;
        }
        if ($_REQUEST['comments']) {
            $comments = str_replace($stripChrs, "", $_REQUEST['comments']);
            $quote_array[comments] = $comments;
        } else {
            $comments = 'not given';
            $quote_array[comments] = $comments;
        }
        require_once 'AutoMail.php';
        $quote_array['file'] == 'none';
        auto_mail($quote_array);
        header("Location: ../get-a-quote/quote-submit.html");
        break;
    default:
        require_once 'AutoMail.php';
        $quote_array['file'] == 'none';
        auto_mail($quote_array);
        header("Location: ../get-a-quote/quote-submit.html");
        break;
}