Esempio n. 1
0
<?php

require_once "webassist/form_validations/wavt_scripts_php.php";
require_once "webassist/form_validations/wavt_validatedform_php.php";
if (isset($_POST["enviar"]) || isset($_POST["enviar_x"])) {
    $WAFV_Redirect = "";
    $_SESSION['WAVT_index_650_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["nombre"]) ? $_POST["nombre"] : "") . "", false, 1);
    $WAFV_Errors .= WAValidateEM((isset($_POST["email"]) ? strtolower($_POST["email"]) : "") . "", true, 2);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Celular"]) ? $_POST["Celular"] : "") . "", false, 3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "index_650");
    }
}
if (ValidatedField('index_650', 'index_650')) {
    if (strpos("," . ValidatedField("index_650", "index_650") . ",", "," . "1" . ",") !== false || "1" == "" || (strpos("," . ValidatedField("index_650", "index_650") . ",", "," . "2" . ",") !== false || "2" == "") || (strpos("," . ValidatedField("index_650", "index_650") . ",", "," . "3" . ",") !== false || "3" == "")) {
        if (!false) {
            echo "error";
            exit;
            //WAFV_Conditional enviar.php index_650(1,2,3:)
        }
    }
}
ob_start();
if (!session_id()) {
    session_start();
}
Esempio n. 2
0
<?php

//check if email already sent
$sent = "-1";
if (isset($_GET['send'])) {
    $sent = $_GET['send'];
}
//insert email newsletter form
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_mailistinsert_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateEM((isset($_POST["mail_email"]) ? $_POST["mail_email"] : "") . "", true, 2);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "mailistinsert");
    }
}
?>

<?php 
// WA DataAssist Insert
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WA_connection = $bikes_db;
    $WA_table = "mailist";
    $WA_sessionName = "WADA_Insert_mailist";
    $WA_redirectURL = "index.php?sent=1";
    if (function_exists("rel2abs")) {
        $WA_redirectURL = $WA_redirectURL ? rel2abs($WA_redirectURL, dirname(__FILE__)) : "";