close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Cannot get captcha to work

Thread began 4/05/2012 7:42 am by mouse426912 | Last modified 4/10/2012 8:12 am by mouse426912 | 1581 views | 4 replies

Jason ByrnesWebAssist

since your form posts to a pearl script, you will not be able to use captcha with this form. the problem is this:

when a form is submitted, the form data is sent directly to the page specified in the action attribute of the form. the action attribute of your form is to post directly to the formprocess3.pl page which is a pearl script.

<form id="inquiry" action="http://www.nantucketantiquesdepot.com/cgi-bin/formprocess3.pl" method="post" name="inquiry" enctype="application/x-www-form-urlencoded" onsubmit="return validator(this)">


you would need to add the server validation php code for validating the entered captcha value to the action page, however, you cant add php code to a pearl script.

the only other option would be to change the action of the form to post to itself, then use cURL to send the post to the pearl script using the following code after the validation code block, but this is not supported:

php:
<?php

if (($_SERVER["REQUEST_METHOD"] == "POST"))     {
$c curl_init();
curl_setopt($cCURLOPT_URL"http://www.nantucketantiquesdepot.com/cgi-bin/formprocess3.pl");
curl_setopt($cCURLOPT_TIMEOUT90);
curl_setopt($cCURLOPT_POST1);
curl_setopt($cCURLOPT_SSL_VERIFYPEER0);
curl_setopt($cCURLOPT_RETURNTRANSFER1);
curl_setopt($cCURLOPT_POSTFIELDS$_POST);
$result curl_exec($c);
curl_close($c);

}
?>

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