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


How do I create a simple form and include captcha?

Thread began 4/15/2010 6:52 am by john275907 | Last modified 4/21/2010 9:36 am by Jason Byrnes | 1490 views | 3 replies |


How do I create a simple form and include captcha?

Update to original...
I have two questions:
First, I have used CSS FB to create a new form (I gave up attempting to edit an existing one!). The form has Captcha and I have included std client side validations to the basic txt fields and have the form's action pointing to the same file. The question I have is how to re-direct the form when the server side validation of the captcha field passes without error.

Second, I see in the documentation it is possible to "Modify the Design" - I would like to tweak the captcha presentation. The docs show an interface to modify various form elements but I cant find where to get at these. I have tried selecting the form in Design View and then selected the various Edit options in DW's Properties, but that just takes me to the same screens I had when I was setting up the form. How do I edit the captcha (or any other element's) properties.

UPDATE: I figured out the trick on editing the Form Design. Still need some advice on how to code the re-direct when server validation has passed.

Attached is a form file created using the default Secure Login template. This file is quite different to another I created from scratch for the actual requirement in the PHP code at the top of the file.
For example, the attached file includes:
if (isset($_POST["Securelogin_submit"])) {
$WAFV_Redirect = "subscribe-css-3.php?invalid=true"; NOTE that subscribe-css-3.php is the file with the form

Whereas the file I created from scratch includes:
if (isset($_POST["Default_submit"]) && !isset($_GET["invalid"])) {
so since if in the case where the url param invalid is not set - ie: no error detected, I edited the next line shown below to point to the required file if no error encountered viz:
$WAFV_Redirect = "";


Attached Files
Sign in to reply to this post

Jason ByrnesWebAssist

you should do any processing of the form data on the form page as well, for example storing the information in a database if that is your goal.

In the server behaviors that you apply to process the form information, you can set a page to redirect to after that behavior has executed.

Sign in to reply to this post


Redirect after server validation

Thanks for your comment Jason

I guess I did not make my point clear. What I am driving at here is that I used the CSS FB to create a standard Secure Login form. This includes client side as well as server side validation. The main server side validation is captcha. There was no provision for a re-direct once the captcha was accepted. The only re-direct I am asked for is to specify the action page for the form. Nowhere was there provision for entering a redirect when server validations were accepted. So the question remains - where and how do I code the re-direct. The orginal file was included in my previous post.

Many thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

for the log in form to act as a logi n form, there needs top be a log in server behavior applied.

you can use the Dreamweaver Authenticate user behavior, or the Security Assist Authenticate Users server behavior.

In either of those server behaviors, there is a place for you to specify the page to redirect after the user has logged in.

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





Ease of use


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