View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Only Form Validation on My Own Form, NOT WORKING!

Thread began 9/22/2009 1:51 pm by Cologne | Last modified 9/23/2009 7:16 am by Cologne | 1109 views | 2 replies


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!

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 != "") {

<form id="formGetEmail" name="formGetEmail" method="post" action="">
<div align="center">
<p>Trag Dich ein und wir sagen Dir wann's los geht!</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" />
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:)
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)



Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...