close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form Processor - Email

Thread began 5/07/2011 3:23 am by liamh279481 | Last modified 7/11/2011 3:59 pm by Jason Byrnes | 1674 views | 8 replies |

liamh279481

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

jen425288

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.

Attached Files
formmail.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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,

php:
$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:

php:
$WAFV_Errors .= WAValidateLE(strtolower($_POST['Security_Code_1']) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,1);
Sign in to reply to this post

jen425288

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

Attached Files
eoi_form.zip
Sign in to reply to this post

jen425288

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.

Sign in to reply to this post

jen425288

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.

Attached Files
simpleform_wa.zip
Sign in to reply to this post

jen425288

I should also attach the form processor

Attached Files
formmail_wa.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...