Only Form Validation on My Own Form, NOT WORKING!
I used to have a Honey Pot. Copied the FIXES but the form goes through even if there are VALUES!
<?php
if (isset($_POST["buttonSendEmail"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_index_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateEM(((isset($_POST["email"]))?$_POST["email"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRX(((isset($_POST["firstRow"]))?$_POST["firstRow"]:"") . "","/\s*/i",false,2);
$WAFV_Errors .= WAValidateRX(((isset($_POST["lastRow"]))?$_POST["lastRow"]:"") . "","/\s*/i",false,3);
$WAFV_Errors .= WAValidateLE($totalRows_email . "",0 . "",true,4);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"index");
}
}
?>
<form id="formGetEmail" name="formGetEmail" method="post" action="">
<div align="center">
<p>Trag Dich ein und wir sagen Dir wann's los geht!</p>
<p>
<input name="firstRow" type="text" id="firstRow" style="display:none" value="c" />
Hier Deine Email-Adresse eintragen:
<input name="email" type="text" id="email" value="<?php echo(ValidatedField("index","email")) ?>" size="50" maxlength="100" />
<input type="submit" name="buttonSendEmail" id="buttonSendEmail" value="Eintragen und warten!" />
<input name="lastRow" type="text" id="lastRow" style="display:none" value="c" />
</p>
<?php
if (ValidatedField('index','index')) {
if ((strpos((",".ValidatedField("index","index").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<p>Bitte gib eine korrekte Email-Adresse ein!</p>
<?php //WAFV_Conditional index.php index(1:)
}
}
}?>
<?php
if (ValidatedField('index','index')) {
if ((strpos((",".ValidatedField("index","index").","), "," . "4" . ",") !== false || "4" == "")) {
if (!((strpos((",".ValidatedField("index","index").","), "," . "1" . ",") !== false || "1" == ""))) {
?>
<p>Die Email-Adresse ist schon eingetragen!</p>
<?php //WAFV_Conditional index.php index(4:1)
}
}
}
?>
</div>
</form>
Help!