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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sending results dynamically

Thread began 11/10/2011 7:04 pm by elgueromero13396227 | Last modified 11/16/2011 9:52 am by Jason Byrnes | 1035 views | 9 replies |

elgueromero13396227

Sending results dynamically

smoke_detector_testing_application.php


I am trying to send the results of the form to the user as well as myself. I would like to also have a thank you page that also displayed the results of the submission for the user to see. It didn't go into detail in the set up about how to do this exactly. I can get it to send to my email and let me know about the forum submission but it should have sent me another email since I'm the user

Also since my form is sort of two forms in one how can I get the information sent to the email to be divided into the two categories so it is easier to read in the email...any help would be great.

Sign in to reply to this post

Jason ByrnesWebAssist

use Universal Email to send the form. In the to section, set it to use a static value for your email address, and also use the dynamic data binding for the email form element to send it to the person filling in the form.

to design the email, click the DW Edit icon, this will open a Dreamweaver window for you to create the look of the email body, on the bindings panel,, use the form bindings to add the form elements to the email message.

Sign in to reply to this post

elgueromero13396227

EDIT* This does work correctly now. For some reason I need to enter all fields of the form. How do I turn off validation so the user can choose which section of the form to submit? Thanks


chrisw@intuidiv.com
<?php echo ((isset($_POST["Email_Address"]))?$_POST["Email_Address"]:""); ?>
<?php echo ((isset($_POST["email_Address"]))?$_POST["email_Address"]:""); ?>


These are the addresses I'm using. I'm not sure if it correct. My thank you page is not coming up either nor am i getting the email to my box.

I have a two part form with one submit. If the user fills out just one section and clicks submit they get an error because the email and the phone number from the part of the form that is not filled out. I do not have validation checked so why is it still needed an input?

Thanks for the help

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please.

Sign in to reply to this post

elgueromero13396227

Here it is

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

Jason ByrnesWebAssist

delete this block of code to remove validation:

php:
<?php 
if (isset($_POST["Fulltheme_submit"]))  {
  
$WAFV_Redirect "".$_SERVER["PHP_SELF"]  ."?invalid=true";
  
$_SESSION['WAVT_smokedetectortestingapplication_Errors'] = "";
  if (
$WAFV_Redirect == "")  {
    
$WAFV_Redirect $_SERVER["PHP_SELF"];
  }
  
$WAFV_Errors "";
  
$WAFV_Errors .= WAValidateEM((isset($_POST["Email_Address"])?$_POST["Email_Address"]:"") . "",true,1);
  
$WAFV_Errors .= WAValidatePN((isset($_POST["Phone_Number"])?$_POST["Phone_Number"]:"") . "",false,true,true,2);
  
$WAFV_Errors .= WAValidatePN((isset($_POST["Fax_Number"])?$_POST["Fax_Number"]:"") . "",false,true,true,3);
  
$WAFV_Errors .= WAValidateEM((isset($_POST["email_Address"])?$_POST["email_Address"]:"") . "",true,4);
  
$WAFV_Errors .= WAValidatePN((isset($_POST["phone_Number"])?$_POST["phone_Number"]:"") . "",false,true,true,5);
  
$WAFV_Errors .= WAValidatePN((isset($_POST["fax_Number"])?$_POST["fax_Number"]:"") . "",false,true,true,6);
  
$WAFV_Errors .= WAValidateDT((isset($_POST["best_Day"])?$_POST["best_Day"]:"") . "",true,"","","",false,"","","",true,7);
  
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["security_Question"])?$_POST["security_Question"]:"")) . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,8);

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





also this block of code:

php:
<script type="text/javascript">
<!--
var First_Name_Spry = new Spry.Widget.ValidationTextField("First_Name_Spry", "none", { isRequired:false , validateOn:["blur"]});
var Last_Name_Spry = new Spry.Widget.ValidationTextField("Last_Name_Spry", "none", { isRequired:false , validateOn:["blur"]});
var Street_address_Spry = new Spry.Widget.ValidationTextField("Street_address_Spry", "none", { isRequired:false , validateOn:["blur"]});
var Owner_city_Spry = new Spry.Widget.ValidationTextField("Owner_city_Spry", "none", { isRequired:false , validateOn:["blur"]});
var Owner_state_Spry = new Spry.Widget.ValidationTextField("Owner_state_Spry", "none", { isRequired:false , validateOn:["blur"]});
var Zip_code_Spry = new Spry.Widget.ValidationTextField("Zip_code_Spry", "none", { isRequired:false , validateOn:["blur"]});
var block_Number_Spry = new Spry.Widget.ValidationTextField("block_Number_Spry", "none", { isRequired:false , validateOn:["blur"]});
var lot_Number_Spry = new Spry.Widget.ValidationTextField("lot_Number_Spry", "none", { isRequired:false , validateOn:["blur"]});
var Email_Address_Spry = new Spry.Widget.ValidationTextField("Email_Address_Spry", "email", { isRequired:false , validateOn:["blur"]});
var Phone_Number_Spry = new Spry.Widget.ValidationTextField("Phone_Number_Spry", "phone_number", { format:'phone_us', isRequired:false , validateOn:["blur"]});
var Fax_Number_Spry = new Spry.Widget.ValidationTextField("Fax_Number_Spry", "phone_number", { format:'phone_us', isRequired:false , validateOn:["blur"]});
var first_Name_Spry = new Spry.Widget.ValidationTextField("first_Name_Spry", "none", { isRequired:false , validateOn:["blur"]});
var last_Name_Spry = new Spry.Widget.ValidationTextField("last_Name_Spry", "none", { isRequired:false , validateOn:["blur"]});
var street_address_Spry = new Spry.Widget.ValidationTextField("street_address_Spry", "none", { isRequired:false , validateOn:["blur"]});
var owner_city_Spry = new Spry.Widget.ValidationTextField("owner_city_Spry", "none", { isRequired:false , validateOn:["blur"]});
var owner_state_Spry = new Spry.Widget.ValidationTextField("owner_state_Spry", "none", { isRequired:false , validateOn:["blur"]});
var zip_code_Spry = new Spry.Widget.ValidationTextField("zip_code_Spry", "none", { isRequired:false , validateOn:["blur"]});
var email_Address_Spry = new Spry.Widget.ValidationTextField("email_Address_Spry", "email", { isRequired:false , validateOn:["blur"]});
var phone_Number_Spry = new Spry.Widget.ValidationTextField("phone_Number_Spry", "phone_number", { format:'phone_us', isRequired:false , validateOn:["blur"]});
var fax_Number_Spry = new Spry.Widget.ValidationTextField("fax_Number_Spry", "phone_number", { format:'phone_us', isRequired:false , validateOn:["blur"]});
var best_Day_Spry = new Spry.Widget.ValidationTextField("best_Day_Spry", "date", { format:'mm/dd/yyyy' , validateOn:["blur"]});
var best_Time_Spry = new Spry.Widget.ValidationSelect("best_Time_Spry",{validateOn:["change"]});
var security_Question_Spry = new Spry.Widget.ValidationTextField("security_Question_Spry", "none",{validateOn:["blur"]});
//-->
</script>
Sign in to reply to this post

elgueromero13396227

That worked great. Where do I learn how to get the results to show up in my .php thank you page? Any help would be great.

Sign in to reply to this post

elgueromero13396227

What I don't understand is why everytime you mod the uni email it gives you a new template.file or a blank_number file.

Sign in to reply to this post

elgueromero13396227

Just need a little help here in the right direction. I can't get the results to show on the thank you page. Which template do I mod to get this effect? I tried to mod one of the blank_### but it didn't work. I read your other posts but they are too vague for this nub. Any help would be great. Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

to show the for information on the thank you page, you will need to first store it in session variables.

There are webassist behaviors for doing this in Security Assist 2 and in eCart.

the steps would be:
On the form page, open the server behaviors panel. click the plus button and select eCart -> General -> Set Session Value (or WebAssist -> Cookies -> Set Session Value if you own Security Assist 2)

For the trigger, click the lightning bolt icon, from the dynamic bindings panel, expand the form collection and select the first for element.

Do the same thing for the Value.

Set the name to be the same as the form element.

Repeat those steps for each form element so that you create a session variable for each one.

On the thank you page open the bindings panel, and expand the session collection, use the session bindings on your page to show the information that was entered in the form.

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