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

Missing Email for Submit

Thread began 3/27/2012 6:19 pm by tom92909 | Last modified 3/28/2012 10:35 am by Jason Byrnes | 901 views | 12 replies |

tom92909Beta Tester

Missing Email for Submit

Greetings Folks. I started this project yesterday morning. I installed CSS Form Builder v2.01 today after removing the individual products that are now components of Form Builder. I spent several hours creating a custom form. The form page itself looks great, I then wanted to utilize Universial Email (which is now part of Form Builder), so I setup the messaging portion as directed. I setup the mail server as I have in the past using UE4, I added a physical file attachement, input the From and To, and the Subject. As for the message body, I haven't really done much to customize that at this point so I just left it using the Default style.

The issue I'm having is that I click submit, and I get nothing. The page redirect or goto page that is defined in UE doesn't occur either.

I'm at a loss.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, that means that email is not being triggered to send, perhaps because of a validation failure. Please send a copy of the page so i can look at the code to have an idea why.

Sign in to reply to this post

tom92909Beta Tester

See attached...

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

Jason ByrnesWebAssist

first, make sure no php error are occurring, add the following code at line 1 to turn error reporting on:

php:
<?php

error_reporting
(A_LL);
ini_set('display_errors','on');
?>




next, make sure no validation errors are occurring, change the following code:

php:
if ($WAFV_Errors != "")  {

    PostResult($WAFV_Redirect,$WAFV_Errors,"registrationform");
  }



to:

php:
if ($WAFV_Errors != "")  {

    die($WAFV_Errors."<br><br><br><br>".var_dump($_POST)."<br><br><br><br>'.var_dump($_SESSION));
    PostResult($WAFV_Redirect,$WAFV_Errors,"registrationform");
  }




post back the results of trying to submit the form with those changes.

Sign in to reply to this post

tom92909Beta Tester

I found the line...

php:
if ($WAFV_Errors != "")  {

    PostResult($WAFV_Redirect,$WAFV_Errors,"registrationform");
  }



I made the edit to the line and got a syntax issue in Dreamweavers CS 5.5

See attached screenshot.

Sign in to reply to this post

Jason ByrnesWebAssist

sorry, had a single quote where a double quote was needed, the correct code is:

php:
if ($WAFV_Errors != "")  { 
    die($WAFV_Errors."<br><br><br><br>".var_dump($_POST)."<br><br><br><br>".var_dump($_SESSION)); 
    PostResult($WAFV_Redirect,$WAFV_Errors,"registrationform"); 
  }
Sign in to reply to this post

tom92909Beta Tester

The output for the page submit is as follows;

array(19) { ["Summer1"]=> string(1) "1" ["Summer2"]=> string(1) "1" ["Dance"]=> string(1) "1" ["First_Name"]=> string(3) "Tom" ["Last_Name"]=> string(6) "Tester" ["age"]=> string(2) "40" ["contact_phone"]=> string(14) "(123) 123-1234" ["emailaddress"]=> string(17) "tom92909@webassist.com" ["Address_1"]=> string(14) "123 Elm Street" ["City"]=> string(8) "Anywhere" ["State"]=> string(2) "AL" ["Zip"]=> string(5) "12345" ["parent_name"]=> string(3) "Mom" ["daytime_phone"]=> string(14) "(555) 123-1234" ["emergency"]=> string(14) "(555) 222-3333" ["schools"]=> string(4) "None" ["years"]=> string(1) "1" ["Registration_group_Security_code"]=> string(5) "EWdTk" ["RichRegistration_submit"]=> string(25) "Send Student Registration" } array(2) { ["captcha_Security_Code_1"]=> &string(5) "EWdTk" ["WAVT_registrationform_Errors"]=> &string(0) "" } ,12
Sign in to reply to this post

Jason ByrnesWebAssist

OK, that means that the captcha is failing validation.


in the server validation server behaivor, you have the like entry validation for captcha set to compare the "Registration_group_Security_code" form element against the "captcha_Registration_group_Security_code" session variable.

in the image tag that creates the captcha image:

php:
<img id="capt1"  src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=17&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" />



one of the variables that is passed is name d"field:

field=Security_Code_1




the captcha session name is created as "captcha_<field value>" so the session variable you should be using is named "captcha_Security_Code_1".


you will need to edit the like entry server validation to compare the "Registration_group_Security_code" form element against the "captcha_Security_Code_1" session variable

Sign in to reply to this post

tom92909Beta Tester

Whooo Hooo! Good morning Sir! After a good nights sleep, I found that very thing that the error output was referencing 12, but I had no idea how to fix it...

This is what I'm looking at...

The Form Portion
==============
<div class="fieldGroup"><table><tr><td><img id="capt1" src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=17&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" /></td><td><img src="webassist/captcha/images/refresh.png" height="18" onClick="document.getElementById('capt1').src+='&ref=1'"></td></tr></table></div>


The Validation Portion
=================
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Registration_group_Security_code"])?$_POST["Registration_group_Security_code"]:"")) . "",((isset($_SESSION["captcha_Registration_group_Security_code"]))?strtolower($_SESSION["captcha_Registration_group_Security_code"]):"") . "",true,12);



I understand that I need to change the LIKE part, but actually editing the validation is the issue. I don't see how to actually locate the Validation Tool. Before when I used it outside of Form Builder, it wasn't really that difficult, but now that everything is bundled together, I'm not finding the utility within the page properties, I can easily access the progress bar properties and the CSS Form properties (Edit Form, Edit Design, Edit Contents).



Do I just hand code the change? Replacing

strtolower($_SESSION["captcha_Registration_group_Security_code"]):"")

with

strtolower($_SESSION["captcha_Security_Code_1"]):"")

by hand?

As always, thank you for your patience with me.

Sign in to reply to this post

tom92909Beta Tester

I hand coded the change and it works perfectly!

As always I truly appreciate you and the whole WebAssist team for providing the best Dreamweaver Extensions available in the World!

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