Ejemplo n.º 1
0
    $string = str_replace("\\", "", $string);
    return $string;
}
session_start();
$host = "localhost";
$port = 25;
$from = "*****@*****.**";
$fromName = "HealthiVibe";
$phone = @clean_data_field($_POST["phone"]);
$name = @clean_data_field($_POST["name"]);
$zip = @clean_data_field($_POST["zip"]);
$citystate = @clean_data_field($_POST["citystate"]);
$email = @clean_data_field($_POST["email"]);
$preferred = @clean_data_field($_POST["preferred"]);
$interested = @clean_data_field($_POST["interested"]);
$source = @clean_data_field($_POST["source"]);
$subject = "FAP Clinical Trial Contact Form Submission";
$message = "Form submission received, details below:" . "<br/><br/>";
$message = $message . "Name: " . $name . "<br/>";
$message = $message . "Phone: " . $phone . "<br/>";
$message = $message . "Email: " . $email . "<br/>";
$message = $message . "City, State: " . $citystate . "<br/>";
$message = $message . "Zip: " . $zip . "<br/><br/>";
$message = $message . "Preferred Method of Contact: " . $preferred . "<br/>";
$message = $message . "Interested in: " . $interested . "<br/>";
$message = $message . "<br/>Source: " . $source . "<br/>";
//$sec = strtolower(to_str($_POST["security_code"]));
//$check = strtolower(to_str($_SESSION['security_code']));
//if ( $check != $sec ) {
//        unset($_SESSION['security_code']);
//        header("Location: faptrial.html?captcha=false&email=". urlencode($email) . "&name=". urlencode($name) . "&phone=". urlencode($phone) . "&citystate=". urlencode($citystate) . "&zip=". urlencode($zip) . "&preferred=". urlencode($preferred) . "&interested=". urlencode($interested) . "&source=". urlencode(source));
Ejemplo n.º 2
0
    $string = preg_replace('/[\\r\\n]/', "", $string);
    $string = str_replace("<", "&lt;", $string);
    $string = str_replace(">", "&gt;", $string);
    $string = str_replace("\\'", "'", $string);
    $string = str_replace("\\'", "'", $string);
    $string = str_replace("\"", "", $string);
    $string = str_replace("\\", "", $string);
    return $string;
}
session_start();
$email = @clean_data_field($_POST["email"]);
$firstName = @clean_data_field($_POST["firstname"]);
$lastName = @clean_data_field($_POST["lastname"]);
$organizationName = @clean_data_field($_POST["organization"]);
$organizationType = @clean_data_field($_POST["orgtype"]);
$other = @clean_data_field($_POST["other"]);
$sec = strtolower(to_str($_POST["security_code"]));
$check = strtolower(to_str($_SESSION['security_code']));
if ($check != $sec) {
    unset($_SESSION['security_code']);
    header("Location: connect.html?captcha=false&email=" . urlencode($email) . "&firstname=" . urlencode($firstName) . "&lastname=" . urlencode($lastName) . "&organization=" . urlencode($organizationName) . "&orgtype=" . urlencode($organizationType) . "&other=" . $other);
    exit;
}
unset($_SESSION['security_code']);
$stmt = "insert into healthivibe.mailinglist ( email, firstName, lastName, organizationName, organizationType ) ";
$stmt = $stmt . "values ( " . get_sql_string($email) . ", " . get_sql_string($firstName) . ", " . get_sql_string($lastName) . ", ";
$stmt = $stmt . get_sql_string($organizationName) . ", " . get_sql_string($organizationType) . " )";
echo $stmt;
@sql_execute($stmt);
$host = "localhost";
$port = 25;
Ejemplo n.º 3
0
    $string = str_replace("<", "&lt;", $string);
    $string = str_replace(">", "&gt;", $string);
    $string = str_replace("\\'", "'", $string);
    $string = str_replace("\\'", "'", $string);
    $string = str_replace("\"", "", $string);
    $string = str_replace("\\", "", $string);
    return $string;
}
session_start();
$host = "localhost";
$port = 25;
$from = "*****@*****.**";
$fromName = "HealthiVibe";
$email = @clean_data_field($_POST["email"]);
$subject = @clean_data_field($_POST["subject"]);
$message = @clean_data_field($_POST["message"]);
$message = str_replace("\r\n", "<br/>", $message);
$message = str_replace("\n", "<br/>", $message);
$sec = strtolower(to_str($_POST["security_code"]));
$check = strtolower(to_str($_SESSION['security_code']));
if (empty($sec) || $check != $sec) {
    unset($_SESSION['security_code']);
    header("Location: contact.html?captcha=false&email=" . urlencode($email) . "&subject=" . urlencode($subject) . "&message=" . urlencode($message));
    exit;
}
unset($_SESSION['security_code']);
$to = "*****@*****.**";
$message = "This message was sent by " . $email . ": <br/><br/>" . $message . "<br/><br/>";
$message = $message . "--- Do not reply to this message ---";
$subject = "Healthivibe request: " . $subject;
@send_mail($from, $fromName, $to, $subject, $message);