captcha
I have a form that will email the info. I have a Captcha field. It never resolves. It always says I need to "Please Enter a Value" Any Idea why?
Larry
I have a form that will email the info. I have a Captcha field. It never resolves. It always says I need to "Please Enter a Value" Any Idea why?
Larry
you are using the wrong session variable in the Like Entry validation.
the following code creates the captcha image:
<img src="webassist/captcha/wavt_captchasecurityimages.php?field=Contact_Us_group_3_field&font=fonts/MOM_T___.TTF" alt="Security Code" class="Captcha">
the image source goes to the wavt_captchasecurityimages.php file and sends a number of URL variables, the file is the field variable:
field=Contact_Us_group_3_field
this variable is used to set the name of the captcha session variable as:
captcha_<field value>
so in this case the session name is:
captcha_Contact_Us_group_3_field
in the like entry validation, you are using a session named captcha_Contact_Us_group_3_field_2 instead:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Contact_Us_group_3_field_2"])?$_POST["Contact_Us_group_3_field_2"]:"")) . "",((isset($_SESSION["captcha_Contact_Us_group_3_field_2"]))?strtolower($_SESSION["captcha_Contact_Us_group_3_field_2"]):"") . "",true,6);
change that code to use the captcha_Contact_Us_group_3_field session:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Contact_Us_group_3_field_2"])?$_POST["Contact_Us_group_3_field_2"]:"")) . "",((isset($_SESSION["captcha_Contact_Us_group_3_field"]))?strtolower($_SESSION["captcha_Contact_Us_group_3_field"]):"") . "",true,6);
How do I post the form to a particular page if captcha is entered correctly?
all form processing is done on the forms action page.
you would not post to another page is captcha is entered correctly, you would add whatever scripts to process the form on the action page.
the form posts to the action page, it processes the validation than whatever action should happen if validation passes, such as send an email or insert to a database.
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.