close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

contact form is not sending email or redirecting to thank you page.

Thread began 9/15/2009 1:46 pm by sandy170299 | Last modified 9/16/2009 8:40 am by Jason Byrnes | 2710 views | 4 replies |

sandy170299

contact form is not sending email or redirecting to thank you page.

Everything with the contact form was working fine, until I added a new field and applied validation to it. Now, the form submits, but does not send the email, nor does it redirect to the thank you page. That's all I've changed.

My global file is :
<?php
$WAGLOBAL_Captcha_Width = "200" ;
$WAGLOBAL_Captcha_Height = "40" ;
$WAGLOBAL_Captcha_Characters = "5" ;
$WAGLOBAL_Captcha_Font = "Fonts/monofont.TTF" ;
$WAGLOBAL_Captcha_BG = "ffffff" ;
$WAGLOBAL_Captcha_Noise = "cccccc" ;
$WAGLOBAL_Captcha_Text = "333333" ;
$WAGLOBAL_Captcha_BG_transparent = "0" ;
$WAGLOBAL_Email_Server = "" ;
$WAGLOBAL_Email_Subject = "Request for Information from Web Site" ;
$WAGLOBAL_Email_To = "sandy@websailer.com" ;
$WAGLOBAL_Email_CC = "" ;
$WAGLOBAL_Email_BCC = "" ;
?>

I'm not sure how much of the code on my contact page you want me to post, so I will wait until I hear back from someone.

Sign in to reply to this post

Jason ByrnesWebAssist

If it's not going to the thanks you, it is most likely not passing validation. To check, look for the following code:

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}



and change it to:
if ($WAFV_Errors != "") {
die($WAFV_Errors)
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}




If it is not passing validation, you will have a white screen with a comma seperated list of numbers. The numbers relate to the validations that are not p[assing.

Look at the validation code, it will look like:
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Comments"]))?$_POST["Comments"]:"") . "",true,3);

The "3" at the end of this string is the validation number, look through each of the validations to determine which is failing.


Or post the coma separated string of numbers along with you page And I'll let you which is failing.

Sign in to reply to this post

sandy170299

When I replace the block of code with the following, the form doesn't show up on the page anymore.

if ($WAFV_Errors != "") {
die($WAFV_Errors)
PostResult($WAFV_Redirect,$WAFV_Errors,"contactus");
}

Sign in to reply to this post

sandy170299

Actually, I removed that entire block of code and it appears to be submitting the form now, but I suspect something is messed up with the validations.

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, slight syntax error, there should be a semi colon after the die(); statement:

if ($WAFV_Errors != "") {
die($WAFV_Errors);
PostResult($WAFV_Redirect,$WAFV_Errors,"contactus" );
}

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