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

rating

Email won't send!

Thread began 12/22/2010 10:03 am by admin140217 | Last modified 12/22/2010 1:26 pm by admin140217 | 994 views | 4 replies |

admin140217

Email won't send!

Hi All,

I have just built a webform with form builder and have applied Universal email to it but for some reason the form submission isn't going to the thankyou.html page that I have set up and sending the form data.

The URL is:
contact.php

The URL after clicking submit is:
contact.php?invalid=true

I've done this many times in the past with no problem, maybe I just need a fresh pair of eyes for something I have overlooked.

Any suggestions as to why this isn't sending would be great.

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

This means the form is failing the server validation.

My guess is that the checkbox groups are throwing it off, but I'd want to look at the code to verify.

Can you find the server validation code on the page and copy and paste it into a reply to this thread? If not maybe attatch the page, but really I just want to look at the server validation portion.

You could narrow it down more by adding <?php var_dump($_SESSION); ?>

This would give you more information about which field(s) are actually failing validation. I could probably tell by looking at the code directly, but the var_dump would tell me where exactly to look.

Sign in to reply to this post

admin140217

Ray,

Thanks for having a look at this, I think this is the code you're wanting to look at:

<?php
if (isset($_POST["Realtor_submit_x"])) {
$WAFV_Redirect = "contact.php?invalid=true";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_First_Name"])?$_POST["fieldset_group_First_Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Last_Name"])?$_POST["fieldset_group_Last_Name"]:"") . "",true,2);
$WAFV_Errors .= WAValidateEM((isset($_POST["fieldset_group_Email"])?$_POST["fieldset_group_Email"]:"") . "",true,3);
$WAFV_Errors .= WAValidatePN((isset($_POST["fieldset_group_Phone_Number"])?$_POST["fieldset_group_Phone_Number"]:"") . "",false,true,true,4);
$WAFV_Errors .= WAValidatePN((isset($_POST["fieldset_group_Alternate_Phone"])?$_POST["fieldset_group_Alternate_Phone"]:"") . "",false,true,true,5);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Own_a_home"])?$_POST["fieldset_group_Own_a_home"]:"") . "",true,6);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Buying_a_home"])?$_POST["fieldset_group_Buying_a_home"]:"") . "",true,7);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Selling_a_home"])?$_POST["fieldset_group_Selling_a_home"]:"") . "",true,8);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["fieldset_group_Security_code"])?$_POST["fieldset_group_Security_code"]:"")) . "",((isset($_SESSION["captcha_fieldset_group_Security_code"]))?strtolower($_SESSION["captcha_fieldset_group_Security_code"]):"") . "",true,9);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["fieldset_group_nbsp"])?$_POST["fieldset_group_nbsp"]:"")) . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,10);
$WAFV_Errors .= WAValidateRX((isset($_POST["HiddenFields_fields"])?$_POST["HiddenFields_fields"]:"") . "","/.*/",false,11);

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

Sign in to reply to this post

Ray BorduinWebAssist

The problem appears to be that the fax number is actually required in that code. When I fill out all fields, it appears to validate properly.

I think you can fix that by updating the line:

$WAFV_Errors .= WAValidatePN((isset($_POST["fieldset_group_Alternate_Phone"])?$_POST["fieldset_group_Alternate_Phone"]:"") . "",false,true,true,5);

to:

$WAFV_Errors .= WAValidatePN((isset($_POST["fieldset_group_Alternate_Phone"])?$_POST["fieldset_group_Alternate_Phone"]:"") . "",false,true,false,5);

Sign in to reply to this post

admin140217

Thanks for that solution Ray, it worked fine. Just an FWI, I did not set validation on the additional phone number, it seems as though that particular field set its own validation. This has happened before on other forms I have made with form builder.

Thanks again

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