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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Getting some weird email headings

Thread began 7/28/2010 6:48 am by downloads336743 | Last modified 7/30/2010 12:57 pm by Eric Mittman | 1857 views | 5 replies |

downloads336743

Getting some weird email headings

Hi,
I created a form through contact form solution then wanted it styled (figured to use the form builder). I removed all the validations etc that contact form solution added as specified in the how to guide. And then it got re-added by form builder. It now works however the email i'm getting through has a lot of headings that I don't need, including it seems the captcha code etc. Can you help me remove this stuff. Thanks. The email content appears as below :


Contact me group Name: Test
Contact me group Email: sales@overloadweb.com.au
Contact me group Comments: test
Contact me group Security code: mrk
SimpleContact submit x: 35
SimpleContact submit y: 13
SimpleContact submit: Contact me

Sign in to reply to this post

Eric Mittman

This is the result that you get when you use one of the template email pages when you craft your message. The page is looping over all of the posted values and using the name as the label for that value.

To have complete control over the contents of the message you can go to webassist > email > templates and open the template file. Once open go to Bindings > Form Data and select the page with the form on it. When you do this you will get the bindings for that form available to you on this email template page. Once you have these values in the bindings tab you can then add them directly to the page by dragging and dropping them where you would like them to be. This will be the value of that element that you drag onto the page, you can add in your own label to describe the value.

Sign in to reply to this post

downloads336743

Hi Eric,
I assume you mean the templates email page (contactus.php) in the Universal email folder? If that IS what you mean, i tried what you said and came up with the following:

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
<div id="content" style="font-size: 12px;">
<h1 style="color: #777890;font-size: 14px;font-weight: bold;margin:0;">Contact Form Response</h1>
<hr style="margin:0;"/>
<?php
foreach( $_POST as $pkey => $pval ){
if ($pval != "" && strpos($pkey,"Security_") !== 0 && $pkey != "x" && $pkey != "y") {
?>
<div style="formRow">
<strong><?php echo(str_replace("_"," ",$pkey)); ?>: </strong>
<?php echo(str_replace("\n","<BR />",$pval)); ?>
</div>
Name : <?php echo((isset($_POST["Contact_me_group_Name"]))?$_POST["Contact_me_group_Name"]:"") ?><br/>
Email : <?php echo((isset($_POST["Contact_me_group_Email"]))?$_POST["Contact_me_group_Email"]:"") ?> <br>
Comments : <?php echo((isset($_POST["Contact_me_group_Comments"]))?$_POST["Contact_me_group_Comments"]:"") ?>
<?php
}
}
?>
</div>
</body>
</html>

The problem with that is that the email came back with :


Contact Form Response
________________________________________
Contact me group Name: Nic
Name : Nic
Email : sales@overloadweb.com.au
Comments : test
Contact me group Email: sales@overloadweb.com.au
Name : Nic
Email : sales@overloadweb.com.au
Comments : test
Contact me group Comments: test
Name : Nic
Email : sales@overloadweb.com.au
Comments : test
Contact me group Security code: rs3
Name : Nic
Email : sales@overloadweb.com.au
Comments : test
SimpleContact submit x: 48
Name : Nic
Email : sales@overloadweb.com.au
Comments : test
SimpleContact submit y: 18
Name : Nic
Email : sales@overloadweb.com.au
Comments : test
SimpleContact submit: Contact me
Name : Nic
Email : sales@overloadweb.com.au
Comments : test


Any suggestions?
thanks

Sign in to reply to this post

Eric Mittman

You are very close, the problem is that the loop is still there, it needs to be removed. The code on this page should be updated to be like this:

php:
<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
<div id="content" style="font-size: 12px;">
<h1 style="color: #777890;font-size: 14px;font-weight: bold;margin:0;">Contact Form Response</h1>
<hr style="margin:0;"/>
<div style="formRow">
Name : <?php echo((isset($_POST["Contact_me_group_Name"]))?$_POST["Contact_me_group_Name"]:""?><br/>
Email : <?php echo((isset($_POST["Contact_me_group_Email"]))?$_POST["Contact_me_group_Email"]:""?> <br>
Comments : <?php echo((isset($_POST["Contact_me_group_Comments"]))?$_POST["Contact_me_group_Comments"]:""?>
</div>
</div>
</body>
</html>
Sign in to reply to this post

downloads336743

Ahh! Perfect. Thanks
Any idea when the fully integrated product will come out? So that we can create from scratch with Form Builder and send out without using other WA products and mess around with scripts like the above?
Cheers
Nic

Sign in to reply to this post

Eric Mittman

It is in the works but I don't have a firm ETA on it. Keep an eye out for any new announcements or newsletters for more details.

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