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

UE-mail not working with ASP Captcha

Thread began 11/22/2011 3:26 pm by Fritz Stickers | Last modified 12/01/2011 2:26 am by Fritz Stickers | 1476 views | 18 replies |

Fritz Stickers

UE-mail not working with ASP Captcha

I added the ASP captcha from "hotdreamweaver" to my contact page.
It works but the UA-mail doesn't work anymore.
Any idea or experience with this ?

Thanks in advance.

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

Dani Chankhour

What version of UE are you using? UE 4 only supports PHP.

Also, can you explain the error you are getting that is preventing UE from working.

Sign in to reply to this post

Fritz Stickers

UE 3.0.7

There's no error-message.
On submit, the captcha works fine and the Contact_OK page appears.
But the UE-mail is not sent.

Sign in to reply to this post

Dani Chankhour

Can you please check to make sure the UE code is being called by placing a debugging statement(Response.End) before the following line:

WA_Universal_Email_1_SendMail("info@frogstyling.be")

This will tell us if the Universal Email is being ran at all on the page.

Sign in to reply to this post

Fritz Stickers

This is the piece of code you ask :

<%
if ((cStr(Request.Form("VraagOpmerking")) <> "")) then
'WA Universal Email object="CDOSYS"
'Send Loop Once Per Entry
WA_Universal_Email_1_SendMail("info@frogstyling.be")

'Send Mail All Entries
if ("Contact_OK.asp"<>"") then
Response.Redirect("Contact_OK.asp")
end if
end if
%>



I tried a few changings to help you :

UE Response.Redirect ("") AND form action="Contact_OK.asp"
>>> the Captcha works, but the UE doesn't work.

UE Response.Redirect ("Contact_OK.asp") AND form action=""
>>> UE works no matter the captcha-field is empty, wrong or right, so the Captcha doesn't work.


I think there must be the conflict ?

Sign in to reply to this post

Jason ByrnesWebAssist

all form processing must be done on the forms action page.


it sounds like the captcha functions have been added to the Contact_OK.asp, you will need to add universal email to that page as well.

Sign in to reply to this post

Fritz Stickers

  all form processing must be done on the forms action page.  


The "Contact-page" is the page with the form, the Captcha and the UEmail.
On submit this page customer will be direct to the "Contact_OK-page".

So, I don't understand what you mean.

Sign in to reply to this post

Jason ByrnesWebAssist

on the contact us page, you have a form, the action of the form is set to post to the Contact_OK.asp, You have applied the Universal Email Behavior to the contact.asp page, you need to apply it to the forms action page:Contact_OK.asp

<form action="Contact_OK.asp" method="post" name="Opmerking_Vraag" id="Opmerking_Vraag" onsubmit="MM_validateForm('Naam','','R','Email','','RisEmail','Onderwerp','','R','VraagOpmerking','','R');return document.MM_returnValue">

Sign in to reply to this post

Fritz Stickers

On the "Contact_OK" is no form, this is just a confirmation page that says the "customer's remark/question" is sent.

On the"Contact" :
- a field check (onsubmit="MM_validateForm('Naam','','R','Email','' ,'RisEmail','Onderwerp','','R','VraagOpmerking','' ,'R');return document.MM_returnValue)
- UEmail to send customer's question
- Captcha

Sign in to reply to this post

Jason ByrnesWebAssist

  On the "Contact_OK" is no form,  




that does not matter.

the action of the form is to post to the Contact_OK page. all form processing must occur on the forms action page. Sending the email is a part of processing the form, so the email behavior must be on the Contact_OK page, since that is where the form posts to.



in an earlier post you wrote:

  UE Response.Redirect ("") AND form action="Contact_OK.asp"
>>> the Captcha works, but the UE doesn't work.  



the captcha works in this configuration because the code to validate the captcha is on the Contact_OK.asp page. the email does not work, because the code to send the email is on the same page as the form.

you then wrote:

  UE Response.Redirect ("Contact_OK.asp") AND form action=""
>>> UE works no matter the captcha-field is empty, wrong or right, so the Captcha doesn't work.  



the email works because the action of the form is set to post to the same page the email behavior code is on, captcha does not work because the form does not post to the Contact_OK.asp page.

either add the code for captcha to the form page, and change the action to be blank, or leave the action posting to the Contact_OK.asp page and add the Email behavior to the Contact_OK.asp page.

either way: All Form Processing MUST Occur on the Forms Action Page

Sign in to reply to this post
loading

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