close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

prebuilt email templates displaying too much posted label data

Thread began 8/26/2010 11:58 am by johnb | Last modified 8/30/2010 8:05 am by Jason Byrnes | 2015 views | 4 replies |

johnb

prebuilt email templates displaying too much posted label data

How can I edit the code so that the prebuilt templates don't send everything posted to the label in the email? I have form with a huge tower of bindings and I really don't wanna have to put them in by hand. I just want to remove the label and header data from the array.

Right now each field is sending this:

"Contact Label Contact Header Office Telephone Number:"

I just want the "Office Telephone Number:" portion.

Thanks for any assistance on this.

Sign in to reply to this post

Jason ByrnesWebAssist

In the template the code to write the label looks like:

php:
<?php echo(str_replace("_"," ",$pkey)); ?>:</th>


you can use the replace function to remove part of the form name from the label.

php:
<?php echo(str_replace("_"," ",str_replace("Contact_Label_Contact_Header """$pkey))); ?>:</th>
Sign in to reply to this post

johnb

I did exactly as you said and it didn't work for me. Also, there are additional strings of text that need to be removed from the same template such as:

• General Info Label General Info Header
• About Label About Header
• More Details Label More Detail Header
• Branding Label Branding Header
• Media Label Media Header
• Practice Goals Labe Practice Goals
• HiddenFields fields:

Sign in to reply to this post

johnb

I think I figured it out. It lookes like removing the space after "Contact_Label_Contact_Header " was the culprit? Not sure, but it worked when I pulled it out.

Also here is how I added all the rest of them. There is probably an easier way to accomplish this but I am just learning so this just made sense. If anyone would like to send a simpler solution I would be interested in knowing it.


php:
<?php echo(str_replace("_"," ",str_replace("Contact_Label_Contact_Header""",str_replace("General_Info_Label_General_Info_Header""",str_replace("About_Label_About_Header""",str_replace("More_Details_Label_More_Detail_Header""",str_replace("Branding_Label_Branding_Header""",str_replace("Media_Label_Media_Header""",str_replace("Practice_Goals_Labe_Practice_Goals""",str_replace("HiddenFields_fields"""$pkey)))))))))); ?>:</th>
Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is the correct way for adding the additional labels to remove.

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