Form validation error?
I have a form that I recently changed and is no longer submitting or redirecting after uploading it again. I added die($WAFV_Errors); to the code and received ,8. What does that mean? I have the page attached as well.
I have a form that I recently changed and is no longer submitting or redirecting after uploading it again. I added die($WAFV_Errors); to the code and received ,8. What does that mean? I have the page attached as well.
8 is the captcha validation:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security"])?$_POST["Security"]:"")) . "",((isset($_SESSION["captcha_Security"]))?strtolower($_SESSION["captcha_Security"]):"") . "",true,8);
the probelm is that it uses the wrong session variable.
the code that generates the captcha image is:
<img src="webassist/captcha/wavt_captchasecurityimages.php?field=Security_2&font=fonts/MOM_T___.TTF" alt="Security Code" class="Captcha" />
the field URL Variable is used in the captcha session name, then naming convention used is:
captcha_<Field URL Variable>
the value of the field URL variable is Security_2:
field=Security_2
so the session used will be named:
captcha_Security_2
so the validation code:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security"])?$_POST["Security"]:"")) . "",((isset($_SESSION["captcha_Security"]))?strtolower($_SESSION["captcha_Security"]):"") . "",true,8);
needs to be changed to:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security"])?$_POST["Security"]:"")) . "",((isset($_SESSION["captcha_Security_2"]))?strtolower($_SESSION["captcha_Security_2"]):"") . "",true,8);
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.