close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

form still sending without CAPCHA input (HTML 5 based page)

Thread began 4/28/2013 2:11 am by Nutzo247 | Last modified 4/29/2013 12:39 pm by Jason Byrnes | 669 views | 8 replies |

Nutzo247

form still sending without CAPCHA input (HTML 5 based page)

I've gone though the the instruction to implement the verify by it is still not enforced. Is there something missing in the code or assets?

BTW I'm using DW CS6 cloud version.... the striped down code is attached.

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

Jason ByrnesWebAssist

Rule number 1 when working with forms:

All Form Processing MUST occur on the page specified as the action in the form tag.

your form:

php:
<form  action="send_email.php" method="post" name="BAP_form" id="BAP_form">



specifies the send_email.php page as the action.

the server validation behavior to validate the captcha element must be added to the send_email.php page.

see this tutorial for detail on working with validation on forms that post to another page:
http://www.webassist.com/community/tutorials/view_tutorial.php?tid=16

Sign in to reply to this post

Nutzo247

ok... could I create an if statement to redirect the user back to the original form to input capcha code again?

Sign in to reply to this post

Jason ByrnesWebAssist

In the server validation behavior, set the Failed redirect to go back to the form page.

Sign in to reply to this post

Nutzo247

"Validation Show If"

GOT IT!!! Thanks...

But what about "Validation Show If" on redirect I want to show a message on the capcha form?

Sign in to reply to this post

Nutzo247

Originally Said By: Nutzo247
  GOT IT!!! Thanks...

But what about "Validation Show If" on redirect I want to show a message on the capcha form?  



Sorry I meant, that if I used the"Validation Show If" with the "send_email.php" as the validation page. The message is shown straight away I want to show the message after the first attempt.

Sign in to reply to this post

Jason ByrnesWebAssist

The validation failure is stored in a session variable, the session is cleared when the form submits successfully or the browser is closed.

if you are seeing the validation show if message on page load, it is because you have not closed the session or submitted the form successfully.

try closing the browser completely then testing again.

Sign in to reply to this post

Nutzo247

Silly Me, forgot to close the browser to clear the session. It works fine Thanks Jason.

P.S. Oh for anyone else reading this I made a slight adjustment to the Server Validation Like Entry. On the send_email.php there is no text field to compare so I used $_POST['Security_Code_1'] , this recalls the entry inputted on the capchaform.php.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is correct.

if you view the tutorial i linked to, they use the From Data binding tool to add the form bindings to the page.

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