Form Processor - Email
Hi - The form to email script I am musing seems to bypass the captcha system and therefore does not work. Is there a recomended script to use so that I can implement the solution.
Thanks
Hi - The form to email script I am musing seems to bypass the captcha system and therefore does not work. Is there a recomended script to use so that I can implement the solution.
Thanks
you would need to use a php script for sending the email that can be integrated into the form page. Form Toolkit and Universal Email can be used together quite easily.
I am trying to get Captcha to work and read on this forum that the server validation must be applied to the php page that is processing the form - I am using formmail.php and applied the server validation to that file (attached) but it's still possible to submit the form without filling in the captcha field.
In this thread you say that the form processing script must be "integrated into the form page" so is the above method never going to work? I need to use a form processor that allows file uploads and this one works well so I'd like to continue with it, but really also need captcha security.
My form is at dgr_upload.php
Thanks.
in the validation, you have set the like entry use the captcha_Security_Code_1 Session variable for both the initial server variable and the comparison,
$WAFV_Errors .= WAValidateLE(strtolower($_SESSION['captcha_Security_Code_1']) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,1);
instead, you need to select the Security_Code_1 form element, and compare that to the captcha_Security_Code_1 session:
$WAFV_Errors .= WAValidateLE(strtolower($_POST['Security_Code_1']) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,1);
I tried it with your code and it still doesn't work (doesn't require any input into the text field, let alone the correct one).
When I follow the Getting Started Guide I end up with this:
$WAFV_Errors .= WAValidateLE(strtolower($_SESSION['captcha_Security_Code_1']) . "",strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",true,1);
I've started over quite a few times and always end up with this. But it doesn't work either.
eoi_form.php
Jason, you didn't answer my question in full. On another thread you said "the server validation server behavior that processes the the captcha input must be applied to the forms action page".
Is this true? If so, I shouldn't be trying your suggestion above but should be applying the server behaviours to formmail.php?
But when I try to apply the server validation behaviour to the formmail.php file, when I get to "Choose a variable to trigger validation", the Contact Form does not appear as an option to expand.
Please could you sort this out as there is conflicting advice here.
After another few hours spent searching the forums I found this thread
showthread.php?t=17581&highlight=captcha
where you explain what you mean by applying the server behaviours to the form processing page - hallelujah! As that client said, why on earth is this not in the Getting Started Guide when it is such common practice to use a form processor?!?!
So I have, maybe, progressed a bit - to a different error at least.
My page now returns an error page (you have entered the code incorrectly) whether it's entered correctly or not. As for the validation show if, it doesn't work at all - the user is just sent to the error page.
I pared down the form to make it easier to test:
simpleform_wa.php
and have attached it to this post. The server validation code used ($WAFV_Errors etc) is that produced when I follow the Getting Started Guide. But I tried replacing that line with your code - it still doesn't work.
I should also attach the form processor
I have created a support ticket so we can look into this issue further.
To view and edit your support ticket, please log into your support history:
supporthistory.php
If anyone else is experiencing this same issue, please append to this thread.
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.